Re: [ServiceWorker] Promise on navigator.serviceWorker that resolves when page is controlled (#799)

Personally I think some of the issues here stem from the name "ready" and sticking it on the ServiceWorkerContainer.

The current .ready promise is really when is the oldest ServiceWorker ready to begin receiving (maybe queueing) functional events.

It seems reasonable, though, for a page to think navigator.serviceWorker.ready is more about "when is my page's controlling service worker ready".  Being on the ServiceWorkerContainer implies some relationship with the current page.

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

Received on Thursday, 17 December 2015 17:52:50 UTC