Re: [slightlyoff/ServiceWorker] should update() during top level script evaluation be ignored? (#800)

Sorry, but I don't think the check can be done in the Update algorithm.  With it written that way the check won't be executed until after the current job completes and the Update job begins.  This means you will never see a worker in the installing state.

I think we have to do this check in the update() function itself.  Also, I think it should use the service worker associated with its global since this is really only a problem for a service worker updating itself.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/800#issuecomment-203971709

Received on Thursday, 31 March 2016 14:48:38 UTC