W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

Re: [whatwg] Proposal: location.parentOrigin

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 20 Nov 2012 05:47:33 +0000 (UTC)
To: Adam Barth <w3c@adambarth.com>, Jonas Sicking <jonas@sicking.cc>, Michal Zalewski <lcamtuf@coredump.cx>
Message-ID: <Pine.LNX.4.64.1211200539480.26354@ps20323.dreamhostps.com>
Cc: whatwg <whatwg@lists.whatwg.org>
On Mon, 26 Mar 2012, Adam Barth wrote:
> 
> For nested browsing contexts, expose the origin of the parent browsing 
> context via location.parentOrigin.  (For non-nested browsing context, 
> the property would null.)

This ended up implemented in WebKit as Location.ancestorOrigins(), a 
method that returns a static DOMStringList with the origins of the 
ancestor browsing contexts in reverse order (top-level browsing context 
last, parent browsing context first). It doesn't respect sandboxing.

Are other browser vendors interested in implementing this?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 20 November 2012 06:34:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:11 GMT