Bug 43504
Summary: | location.href does not throw SECURITY_ERR when accessed across origins | ||
---|---|---|---|
Product: | WebKit | Reporter: | Mihai Parparita <mihaip> |
Component: | WebCore JavaScript | Assignee: | Chris Dumez <cdumez> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | abarth, annevk, ap, bugs.webkit.org, dpranke, j, levin, mkwst, sam, tonyg |
Priority: | P2 | Keywords: | EasyFix, HasReduction, HTML5 |
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | 43891, 43892 | ||
Bug Blocks: | 98408 |
Mihai Parparita
The HTML5 spec is pretty clear about this:
http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#security-location
For a test case, see the frames[0].location.href line of:
http://persistent.info/webkit/test-cases/iframe-location-href.html?http://example.com
It just shows that the return value is undefined, with no exception being thrown.
Gecko and IE do throw the exception.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Mihai Parparita
Alexey, adding you to the cc list since you mentioned this in comment 5 of bug 17627. I couldn't find another bug filed for this issue, but perhaps you're aware of one.
Mihai Parparita
Since fixing the V8 bindings is significantly more complex than the JSC ones (see http://groups.google.com/group/v8-users/browse_thread/thread/e73680b6ca97a46d), I've split this bug into two (bug 43891 and bug 43892), since it'll be two pretty different patches.
David Levin
*** Bug 81973 has been marked as a duplicate of this bug. ***
Mike West
Mihai, I'm going to pick this up if you don't mind.
Mike West
Poking the webkit-dev bear again: https://lists.webkit.org/pipermail/webkit-dev/2013-February/023636.html
Anne van Kesteren
Chris, I think you fixed this and some of the other bugs here too right? I can't reproduce comment 0 anymore in Safari TP anyway.
Chris Dumez
*** This bug has been marked as a duplicate of bug 161368 ***
Chris Dumez
(In reply to Anne van Kesteren from comment #6)
> Chris, I think you fixed this and some of the other bugs here too right? I
> can't reproduce comment 0 anymore in Safari TP anyway.
Yes, thanks.