W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2013

Re: [whatwg] Proposal: location.parentOrigin

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 16 Jul 2013 22:42:37 +0000 (UTC)
To: Tobie Langel <tobie.langel@gmail.com>
Message-ID: <alpine.DEB.2.00.1307162242190.9685@ps20323.dreamhostps.com>
Cc: whatwg <whatwg@lists.whatwg.org>, Michal Zalewski <lcamtuf@coredump.cx>, Adam Barth <w3c@adambarth.com>, Malte Ubl <malte.ubl@gmail.com>, Jonas Sicking <jonas@sicking.cc>
On Wed, 17 Jul 2013, Tobie Langel wrote:
> On Tuesday, July 16, 2013 at 7:53 PM, Ian Hickson wrote:
> > Can't you do window.isSameOrigin by just trying to access 
> > window.location.href and seeing if you get an exception?
> 
> Unfortunately not, because of the previously mentioned WebKit bug which 
> logs an error message but doesn't throw (so there's no way of knowing 
> whether an exception was thrown or not).

We can trivially change that, if that's the only problem.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 16 July 2013 22:43:00 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:03 UTC