Re: [w3c/ServiceWorker] consider Client behavior for windows where initial about:blank is replaced with a loaded document (#1091)

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