Re: [ServiceWorker] "The user agent may terminate service workers at any time it has no event to handle." (#527)

This issue is touched upon in #85, #107, #569 as well. See also http://crbug.com/372436

Implementor's feedback: Chrome will want to terminate service workers at times when it has in-progress requests or even in the middle of JavaScript execution. The spec already seems to have special cases for allowing such termination in steps like "Terminate registration's installing worker." in some algorithms. 

For background, I recently became interested in this issue when looking into how the 24-hour update could fail due to an incumbent bad SW, even with skipWaiting(). E.g., in the Chrome's current implementation, trying to register a script ```while(true) {}``` will block the registration (and update) queue.

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

Received on Thursday, 4 December 2014 09:11:47 UTC