- From: Conrad Irwin <notifications@github.com>
- Date: Mon, 31 Jul 2017 19:37:49 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 1 August 2017 02:38:36 UTC
Hi All, Apologies if this is a silly question. It seems like when I call `.register()` the promise resolves with a service worker that is active. Is this guaranteed? Will there by at least any service worker (installing, waiting or active?) on the registration, or can there be none. I tried tracing through the spec, and it seems (assuming I executed all the job instructions correctly) that this is probably true assuming; but neither https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers or https://developers.google.com/web/fundamentals/instant-and-offline/service-worker/lifecycle say anything about it, so I'm left unsure as to whether this is something I can trust. Assuming it is true, it might be nice to add something to https://www.w3.org/TR/service-workers-1/#navigator-service-worker-register that makes it clear what I can assume as a caller of the .register() method when the returned promise resolves. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1176
Received on Tuesday, 1 August 2017 02:38:36 UTC