Bug 97351

Summary: <base target> seems to not be applied to links consistently
Product: WebKit Reporter: Boris Zbarsky <bzbarsky>
Component: Page LoadingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: abarth, ap
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Testcase none

Boris Zbarsky
Reported 2012-09-21 11:17:42 PDT
Created attachment 165156 [details] Testcase Clicking "Click me" in the attached testcase should alert "PASS" because the base target is the subframe. But instead it seems to alert "FAIL" in WebKit. Presto and Gecko get this right.
Attachments
Testcase (293 bytes, text/html)
2012-09-21 11:17 PDT, Boris Zbarsky
no flags
Alexey Proskuryakov
Comment 1 2012-09-24 11:26:05 PDT
AFAICT, this is not even some kind of cross-origin protection, but just a bug. I haven't heard of "base target" before though.
Adam Barth
Comment 2 2012-09-24 11:38:48 PDT
We don't implement base@target for JavaScript URLs correctly. There's already a bug on file with a bunch of related test cases. It's a consequence of how we handle JavaScript URLs, which is to special case them early in the navigation pipeline. Gecko handles them in a general case near the end of the resource loading pipeline.
Alexey Proskuryakov
Comment 3 2012-09-24 12:20:17 PDT
Thanks Adam! *** This bug has been marked as a duplicate of bug 13543 ***
Note You need to log in before you can comment on or make changes to this bug.