Re: [w3c/ServiceWorker] unclear how Client.postMessage looks up its destination (#1042)

> it makes for an explicit ServiceWorkerContainer -> service worker client mapping

What spec says is not a mapping between a `ServiceWorkerContainer` and a _service worker client_. ServiceWorkerContainer's associated [service worker client](https://w3c.github.io/ServiceWorker/#serviceworkercontainer-service-worker-client) explicitly defines a reference to the service worker client of the `Window/Navigator` where `ServiceWorkerClient` is tied. I don't see a problem in this definition.

> The null-check still makes no sense

Agreed. The _destination_ should be initialized to null and should remain null if it doesn't get a target object. I'll address that point.

-- 
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/1042#issuecomment-270050446

Received on Tuesday, 3 January 2017 04:26:04 UTC