- From: Jake Archibald <notifications@github.com>
- Date: Mon, 26 Jun 2017 09:20:56 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 26 June 2017 16:21:32 UTC
More details from IRC: As @jungkees said, one of the main use-cases is messaging. The developer should be able to send a message to the resulting page as part of a request of mode navigation. We handle this with reserved clients by buffering messages until the client is created & the port is started (either explicitly by calling `startMessages()`, implicitly by assigning to `onmessage`, or after `DOMContentLoaded`). However, this won't work with iframes (or `window.open`) because it has already loaded with `about:blank`, and the new document will load into that global. The port has started way before the document loads. Even if we make initial & reserved different things, we need to solve this for the initial case. -- 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/1091#issuecomment-311109124
Received on Monday, 26 June 2017 16:21:32 UTC