<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>97351</bug_id>
          
          <creation_ts>2012-09-21 11:17:42 -0700</creation_ts>
          <short_desc>&lt;base target&gt; seems to not be applied to links consistently</short_desc>
          <delta_ts>2012-09-24 12:20:17 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>13543</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Boris Zbarsky">bzbarsky</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>725649</commentid>
    <comment_count>0</comment_count>
      <attachid>165156</attachid>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2012-09-21 11:17:42 -0700</bug_when>
    <thetext>Created attachment 165156
Testcase

Clicking &quot;Click me&quot; in the attached testcase should alert &quot;PASS&quot; because the base target is the subframe.  But instead it seems to alert &quot;FAIL&quot; in WebKit.  Presto and Gecko get this right.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>726866</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-09-24 11:26:05 -0700</bug_when>
    <thetext>AFAICT, this is not even some kind of cross-origin protection, but just a bug. I haven&apos;t heard of &quot;base target&quot; before though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>726881</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-09-24 11:38:48 -0700</bug_when>
    <thetext>We don&apos;t implement base@target for JavaScript URLs correctly.  There&apos;s already a bug on file with a bunch of related test cases.  It&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>726909</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2012-09-24 12:20:17 -0700</bug_when>
    <thetext>Thanks Adam!

*** This bug has been marked as a duplicate of bug 13543 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>165156</attachid>
            <date>2012-09-21 11:17:42 -0700</date>
            <delta_ts>2012-09-21 11:17:42 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>bar.html</filename>
            <type>text/html</type>
            <size>293</size>
            <attacher name="Boris Zbarsky">bzbarsky</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUw+CjxiYXNlIHRhcmdldD0ic3ViZnJhbWUiPgo8c2NyaXB0IHR5cGU9InRl
eHQvamF2YXNjcmlwdCI+CiAgZnVuY3Rpb24gZG9JdCgpIHsKICAgIGFsZXJ0KCdGQUlMJyk7CiAg
fQo8L3NjcmlwdD4KPGJvZHk+CiAgPGEgaHJlZj0iamF2YXNjcmlwdDpkb0l0KCkiPkNsaWNrIG1l
PC9hPgogIDxpZnJhbWUgbmFtZT0ic3ViZnJhbWUiIHNyYz0iZGF0YTp0ZXh0L2h0bWwsPHNjcmlw
dD5mdW5jdGlvbiBkb0l0KCkgeyBhbGVydCgnUEFTUycpOyB9PC9zY3JpcHQ+Ij48L2lmcmFtZT4K
PC9ib2R5Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>