- From: Jake Archibald <notifications@github.com>
- Date: Tue, 27 Jun 2017 04:01:00 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 27 June 2017 11:01:41 UTC
Hmm, I thought it was spec'd that the `window.onmessage` queue is opened after DOM ready if it wasn't already opened, but I can't find the spec text to back that up (although it appears to be what browsers do). I'm happy with: For initial `about:blank` documents, don't open the client message queue unless `startMessages()` is called, or there's an assignment to `navigator.serviceWorker.onmessage`. For non-initial documents, open the client message queue after DOMContentLoaded (as is spec'd now) unless it's already open. That means developers can post messages to the client for `<iframe src="foo">` and the message will be delivered once `foo` loads. -- 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-311325244
Received on Tuesday, 27 June 2017 11:01:41 UTC