Re: [ServiceWorker] unregister() then register() same-scope, different script URL that fails: what do you expect to happen? (#396)

To sum, register/update/unregister runs in FIFO order with the following noticeable behaviors:
(1) When an unregister is queued, the next register* request will wait until the registration for the unregister is deleted from the map. (the register* resolves and gets to installed state to be ready though.)
  - This guarantees concurrently running clients are always using the same version of service worker.

(2) Undo the unregister when the next register is for exactly the same registration for the same script.

Closing.

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/396#issuecomment-71418536

Received on Monday, 26 January 2015 06:17:31 UTC