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

Re: ACTION-61: text for embedding part of the Window object

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 5 Jun 2007 05:13:33 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <Pine.LNX.4.64.0706050432430.23576@dhalsim.dreamhost.com>

On Thu, 24 May 2007, Boris Zbarsky wrote:
> Ian Hickson wrote:
> > Does:
> > 
> >    http://www.whatwg.org/specs/web-apps/current-work/#browsing
> > 
> > ...(specifically point 4 in the algorithm)
> Quite frankly, I don't see how point 4 is compatible with the real 
> world.  In particular, if point 4 is applied and I create a window with 
> window.open(), once I've done a single load in it of a page from a 
> different site I can no longer target that window with loads.  That 
> doesn't seem to be compatible with what UAs do or what sites expect...

I've broadened the allowances in the spec. How about now?

> > If so, is the answer acceptable?
> I'm not sure.  If the answer is accepted, that means that 
> https://bugzilla.mozilla.org/show_bug.cgi?id=269174 is invalid. Frankly, 
> that bothers me.  In this situation, the window.name set should really 
> not affect the name of the window for subsequently loaded pages in the 
> same window... if they come from a different site.
> In fact, if I window.open a window and load some page in it, I would 
> expect the name the opener gave that window to not affect the name the 
> page sees for it, if the page is from a different site.  That's not what 
> UAs do at all, but what UAs do seems easily attackable to me...

I've changed the spec so that if you navigate a top-level browsing context 
whose name has been set using window.name (which is the only way to set a 
name on a top-level browsing context as far as I can tell) to a new 
origin, then the name is reset.

This doesn't affect auxiliary browsing contexts though (those with a 
window.opener), and in UAs at the moment those basically act like 
top-level browsing contexts, so this could be confusing.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 5 June 2007 05:13:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:23 UTC