Re: [ServiceWorker] unregister() in service worker navigation fetch event (#804)

> Are you referring to this text after 12.5 in Handle Fetch?

Yes.

> Would the unloaded (about:blank?) document in the client at this point start returning the service worker for navigator.serviceWorker.controller even before its initial network load is handled by the service worker?

I think the network load being handled by the service worker means the client initiated this request is already controlled that worker.

Also I wonder how one can access navigator.serviceWorker.controller from the unloaded (about:blank?) document when the navigation to a new document already occurred with [replacement enabled](https://html.spec.whatwg.org/multipage/browsers.html#replacement-enabled).


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

Received on Thursday, 7 January 2016 02:10:05 UTC