[w3c/ServiceWorker] Check for Run Service Worker failure and disallow starting redundant workers. (#1419)

This cleans up Run Service Worker to block until the worker is "running" (or failure) and returns the Completion record. Callsites are updated to check if the worker is running before proceeding. It also disallows starting a redundant worker. postMessage is drops silently if starting the service worker failed.

Addresses #1146 and #1403.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * run service worker

-- File Changes --

    M docs/index.bs (147)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1419.patch
https://github.com/w3c/ServiceWorker/pull/1419.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/1419

Received on Thursday, 6 June 2019 08:47:27 UTC