Re: [webidl] XMLHttpRequest interface object

On Thu, 30 Apr 2009, Boris Zbarsky wrote:
> Sam Weinig wrote:
> > I am not sure this always holds.  In the case of the the transition from the
> > initial ("about:blank") document to a loaded document, the window needs to
> > be reused at times.  Take for instance,
> > 
> > w = window.open("testForProperties.html");
> > w.customWindowProperty = "1";
> > w.document.customDocumentProperty = "2";
> > 
> > when testForProperties.html is done loading, customWindowProperty will still
> > be there, but document.customDocumentProperty will not.
> 
> Yep.  In this case, that's exactly what Gecko does: puts the new document in
> the old inner window.

Is this the case only when the new document is from the same origin? That 
is, when the new document has a different origin than the about:blank 
document, does a new Window get created instead of reusing the old one? Or 
do the properties get cleaned out somehow?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Friday, 5 June 2009 08:04:24 UTC