W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2009

Re: [webidl] XMLHttpRequest interface object

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 5 Jun 2009 08:03:50 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: Sam Weinig <weinig@apple.com>, WebApps WG <public-webapps@w3.org>
Message-ID: <Pine.LNX.4.62.0906050802170.1648@hixie.dreamhostps.com>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:31 GMT