Re: [w3c/ServiceWorker] ServiceWorker.postMessage() references the not-yet-created worker global (#1126)

I think we need the global object to get the target realm to invoke `StructuredCloneWithTransfer(message, transfer, targetRealm)`. This serialization should be done on the calling context, right? Or does it make sense to run `StructuredCloneWithTransfer()` in the queued task?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1126#issuecomment-295153553

Received on Wednesday, 19 April 2017 08:09:46 UTC