W3C home > Mailing lists > Public > public-webapi@w3.org > November 2007

Re: Window pointer

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 19 Nov 2007 16:46:23 +0000 (UTC)
To: Anne van Kesteren <annevk@opera.com>
Cc: Stewart Brodie <stewart.brodie@antplc.com>, public-webapi@w3.org
Message-ID: <Pine.LNX.4.62.0711191645001.3737@hixie.dreamhostps.com>

On Mon, 19 Nov 2007, Anne van Kesteren wrote:
> > > 
> > > The Window is not deleted.
> > 
> > Does that go for the document too?
> 
> Yes. I'm not sure why it would be removed. After all, the Window object 
> has references to it.

Careful; a Window object can point to different Document objects during 
its lifetime, depending on which document is active. What should happen 
when the original document is no longer the active document? Directly 
accessing window.document at that point could be across-origin error.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 19 November 2007 16:46:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:58 GMT