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

I found the code that guarantees that controllerchange from a worker going active will occur after the statechange events:

https://searchfox.org/mozilla-central/rev/f8b11433159cbc9cc80500b3e579d767473fa539/dom/serviceworkers/ServiceWorkerRegistrationInfo.cpp#329-335

The TransitionWaitingToActive() will queue a task for the statechange stuff and then UpdateClientControllers() will queue a task for controllerchange events.  Of course, there is nothing here for updatefound because updatefound is not fired for activating a worker.

-- 
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#issuecomment-498687274

Received on Tuesday, 4 June 2019 14:08:23 UTC