[w3c/ServiceWorker] Make Client.postMessage to unloaded client not throw (#1293)

https://github.com/w3c/ServiceWorker/commit/cf834f052bc0aed0795fbf29cbf1c6f251dd5c9d
clarified the target object can be null, and it must throw in that case.

But https://github.com/w3c/ServiceWorker/issues/1291 pointed out that we
cannot implement that behavior without blocking the service worker
process in multi-process browser architectures.

This change makes the control return right away if the target client has
been unloaded.

Fixes #1291.
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1293

-- Commit Summary --

  * Make Client.postMessage to unloaded client not throw

-- File Changes --

    M docs/index.bs (9)
    M docs/v1/index.bs (9)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1293.patch
https://github.com/w3c/ServiceWorker/pull/1293.diff

-- 
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/pull/1293

Received on Tuesday, 27 March 2018 08:21:41 UTC