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

Raised by https://github.com/w3c/ServiceWorker/pull/1102#issuecomment-291405609.

> We call "Run Service Worker", which in parallel creates the workers global object, yet postMessage in the next step tries to synchronously access that global (which hasn't been created yet at that point). It seems instead postMessage should synchronously serialize the message, and then queue a task on the worker to actually deliver the message event after the worker has started up?

-- 
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

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