[w3c/ServiceWorker] Central algorithm for updating service worker state and registrations (#1416)

Fixes #1273.

My aim here was to create a central place that applies updates to workers, registrations, and their various JS objects. This means the rest of the spec doesn't have to try to guess the correct order.

I update all the JS objects before firing events, so objects should be in the current state once the related events fire.

Additionally, I wanted to create a single task (per environment) for firing these events.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Creating a central algorithm for updating service worker state and registrations

-- File Changes --

    M docs/index.bs (223)
    M docs/v1/index.bs (213)

-- Patch Links --

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

Received on Tuesday, 4 June 2019 13:31:12 UTC