Realm, schmealm!

Boris Zbarsky bzbarsky at mozilla.com
Fri Aug 2 17:22:30 PDT 2013


On 8/2/13 6:16 PM, David Bruant wrote:
> IIRC the only valid reason to set document.domain is pre-postMessage
> cross-eTLD+1-frame communication.

Yes....

> How big is the intersection of websites both needing to support IE6/7
> and cross-eTLD+1-frame communcation?

IE8 and IE9 don't support postMessage to a cross-origin window that's 
not in one of your subframes.  And it's not clear what the state of 
things is in IE10, exactly.  See http://caniuse.com/#search=postMessage

But more importantly, having written your code before postMessage 
existed is a valid reason to not use postMessage, and that doesn't mean 
we should necessarily break that code.

-Boris


More information about the es-discuss mailing list