[whatwg] Proposal: location.parentOrigin

Ian Hickson ian at hixie.ch
Tue Jul 16 16:14:19 PDT 2013


On Wed, 17 Jul 2013, Tobie Langel wrote:
> On Wednesday, July 17, 2013 at 12:42 AM, Ian Hickson wrote:
> > 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.
> 
> Fixing that bug would be a great step forward.

Adam?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list