[whatwg] Proposal: location.parentOrigin

Tobie Langel tobie.langel at gmail.com
Tue Jul 16 15:00:17 PDT 2013


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).

--tobie



More information about the whatwg mailing list