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

>1. Let |destination| be the {{ServiceWorkerContainer}} object whose [=ServiceWorkerContainer/service worker client=] is the <a>context object</a>'s [=Client/service worker client=].
>1. If |destination| is null, <a>throw</a> an "{{InvalidStateError}}" exception.

It sort of sounds like looking through the set of all ServiceWorkerContainers that possibly exist, and it's only implied that it sets *destination* to null if it didn't find any. Is it possible to make the mapping from service worker client -> ServiceWorkerContainer more explicit?

There wouldn't be one for e.g. a sharedworker client, would there.

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

Received on Saturday, 31 December 2016 00:48:13 UTC