- From: Ben Kelly <notifications@github.com>
- Date: Mon, 26 Jun 2017 07:39:24 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 26 June 2017 14:39:59 UTC
> Btw, I can't get the replacement thing to happen in any browser other than Firefox. We talked about this in IRC, but for those following along at home, browsers do have some compat here. Its narrowly confined to the particular case where an iframe is statically defined in the document and then an inline script modifies the global before it loads. Cases where you try to dynamically create the iframe have a variety of compat issues: 1. Firefox marks documents as no longer initial after their load event fires. So if you wait for load before modifying the global, then the global won't be reused. 2. Chrome only seems to reuse the global if the `.src` attribute is set before the iframe is added to the document. See the scrollback in this IRC conversation with @bzbarsky for some more discussion: http://logs.glob.uno/?c=mozilla%23content&s=14+Jun+2017&e=14+Jun+2017#c447305 -- 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-311079077
Received on Monday, 26 June 2017 14:39:59 UTC