On 11/19/15 6:57 PM, Jonas Sicking wrote:
You can actually create a MessageChannel and then send one of the
ports to a sub-sub-worker.

Ah, good point.

Unfortunately the other port can't be used as something that
represents the sub-sub-worker since even after a port has started
getting used, it can be sent around again.

Right. There's really no good solution here short of introducing something that represents an arbitrary worker to an arbitrary window or worker, right? That's unfortunate...

Though Service Workers do actually have a 'client' object which
represent window objects. So we could enable passing those as global
to the translate function.

That's a good idea. Want to raise it with the webperf WG? Seems like it wouldn't be that hard to implement.

-Boris

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to