Re: [w3c/ServiceWorker] Possible race between Activate and Update Algorithms (#1285)

> At this point, the registration has an installing worker and a waiting worker.

Hm, wouldn't it be an installing worker and active worker? Once you're in onactivate, you're the active worker.  The active worker should be protected from being terminated while the waitUntil() promise is open via Try Activate's "Service Worker Has No Pending Events" check. If the waiting worker called skipWaiting(), the site has opted into the race anyway.

-- 
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/issues/1285#issuecomment-372317755

Received on Monday, 12 March 2018 13:56:38 UTC