tgvashworth / ServiceWorker-Polyfill

[DEPRECATED] JavaScript ServiceWorker implementation, enabling exploration by authors.
66 stars 7 forks source link

Attempt standard-compliant worker install & activation #46

Open jakearchibald opened 10 years ago

jakearchibald commented 10 years ago

Some of this isn't well specced yet:

https://github.com/slightlyoff/ServiceWorker/issues/144 https://github.com/slightlyoff/ServiceWorker/issues/143

…but I'd like to try and get the "wait for all windows using v1 to go before activating v2" working.

jakearchibald commented 10 years ago

As part of this I'd like to move the registration/install/activation code into WorkerRegistry and WorkerRegistration.

registry register():

registration update():

Tab load and unload:

On fetch: