Re: [ServiceWorker] Association between a service worker and global objects (#652)

> How is a service worker associated to the global object?

`ServiceWorkerGlobalScope` has an associated _service worker_: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#dfn-service-worker-global-scope-service-worker

Just missed the xref url to it. Fixed: cdb025b9f035fe6a660c5bc19896d77776b7fc57

> .source should be set to the ServiceWorker object that corresponds to the service worker where the message originated

It's set to the right one that corresponds to the service worker associated with the `ServiceWorkerGlobalScope` object, as just explained above, who's posting this message.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/652#issuecomment-81605389

Received on Monday, 16 March 2015 11:59:56 UTC