Bug 1060138: Fix context-menu to work in e10s.

This updates the context-menu API to support e10s.
nit: this would create multiple workers with the same id, thought i don't think it matters in this case..