[ServiceWorker] should installing workers be persisted if browser is killed? (#794)

Consider the situation where a new SW is being installed.  Its been set as registration.installing and is in the process of handling the install event.  Before install completes, however, the browser is killed.

In this case, what should happen on browser restart?  Is registration.installing still set?  If so, when do we re-run the install event?

Its not clear to me the update mechanism will account for this case since the script will be a byte-for-byte match.

Personally I would be ok simply not persisting .installing workers.  Only workers that make it to .waiting would be persistent across browser restarts.

Thoughts?

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

Received on Tuesday, 1 December 2015 21:37:26 UTC