<?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>15214</bug_id>
          
          <creation_ts>2007-09-14 08:44:52 -0700</creation_ts>
          <short_desc>SVG link with target=&quot;_top&quot; opens new window</short_desc>
          <delta_ts>2007-09-25 13:15:36 -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>SVG</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.codedread.com/test-safari-link.svg</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jeff Schiller">jeffschiller</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>482</commentid>
    <comment_count>0</comment_count>
    <who name="Jeff Schiller">jeffschiller</who>
    <bug_when>2007-09-14 08:44:52 -0700</bug_when>
    <thetext>Safari 3.0.3 Beta

Clicking the link opens a new window (target=&quot;_top&quot; should replace the top-most frame as Firefox, Opera and IE+ASV3 do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>481</commentid>
    <comment_count>1</comment_count>
      <attachid>16292</attachid>
    <who name="Jeff Schiller">jeffschiller</who>
    <bug_when>2007-09-14 08:45:35 -0700</bug_when>
    <thetext>Created attachment 16292
Simple test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>377</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-09-18 08:10:37 -0700</bug_when>
    <thetext>Confirmed difference in behavior between Firefox 2.0.0.6 and Opera 9.22 versus a local debug build of WebKit r25545 with Safari 3 Public Beta v. 3.0.3 (522.12.1) on Mac OS X 10.4.10 (8R218).

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-09-25 07:22:23 -0700</bug_when>
    <thetext>As part of fixing this, I made sure we passed all the SVG WG test cases.  This one is relevant to this code change, but the test seems wrong:
http://www.w3.org/Graphics/SVG/Test/20061213/htmlEmbedHarness/full-linking-a-07-t.html

specifically:
The bottom-most (blue) arrows links to the same external SVG file, but with xlink:show=&quot;replace&quot;. Both the left and the right blue arrows should produce the image of the linkingToc-t.svg in a new frame.

The left arrow should not open a new window, as xlink:replace behaves like target=&quot;_self&quot; according to the xlink spec.
http://www.w3.org/TR/xlink/#show-att
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56986</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-09-25 07:23:51 -0700</bug_when>
    <thetext>One remaining question is &quot;who wins?&quot; when you have conflicting attributes, such as target=&quot;_self&quot; and xlink:show=&quot;new&quot;.  Currently I&apos;ve coded things so that target always wins.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56987</commentid>
    <comment_count>5</comment_count>
      <attachid>16386</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-09-25 07:28:18 -0700</bug_when>
    <thetext>Created attachment 16386
a fix</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56994</commentid>
    <comment_count>6</comment_count>
      <attachid>16386</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2007-09-25 07:58:03 -0700</bug_when>
    <thetext>Comment on attachment 16386
a fix

r=me</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57022</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-09-25 13:15:36 -0700</bug_when>
    <thetext>Landed on the feature branch as r25729.

You should be able to verify once the build shows up at:
http://nightly.webkit.org/builds/mac-feature-branch/1</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>16292</attachid>
            <date>2007-09-14 08:45:35 -0700</date>
            <delta_ts>2007-09-14 08:45:35 -0700</delta_ts>
            <desc>Simple test case</desc>
            <filename>test-safari-link.svg</filename>
            <type>image/svg+xml</type>
            <size>442</size>
            <attacher name="Jeff Schiller">jeffschiller</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8
IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3
LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPg0KPHN2ZyB3aWR0aD0iMTAw
JSIgaGVpZ2h0PSIxMDAlIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA1MDAgODAiDQogICAg
eG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiANCiAgICB4bWxuczp4bGluaz0iaHR0
cDovL3d3dy53My5vcmcvMTk5OS94bGluayINCiAgICA+DQo8YSB4bGluazpocmVmPSJodHRwOi8v
d3d3LmNvZGVkcmVhZC5jb20vc3ZndGVzdC5zdmciIHRhcmdldD0iX3RvcCI+DQogICAgPHRleHQg
eD0iMjAiIHk9IjU1Ij5DbGljayBNZTwvdGV4dD4NCjwvYT4NCjwvc3ZnPg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>16386</attachid>
            <date>2007-09-25 07:28:18 -0700</date>
            <delta_ts>2007-09-25 07:58:03 -0700</delta_ts>
            <desc>a fix</desc>
            <filename>link.patch</filename>
            <type>text/plain</type>
            <size>1369</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDI1NzIz
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTIgQEAKKzIwMDctMDkt
MjUgIEVyaWMgU2VpZGVsICA8ZXJpY0B3ZWJraXQub3JnPgorCisgICAgICAgIFJldmlld2VkIGJ5
IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIEFscmVhZHkgdGVzdGVkIGJ5IFNWRy9XM0MtU1ZH
LTEuMS9saW5raW5nLWEtMDctdC5zdmcKKworICAgICAgICAqIGtzdmcyL3N2Zy9TVkdBRWxlbWVu
dC5jcHA6CisgICAgICAgIChXZWJDb3JlOjpTVkdBRWxlbWVudDo6ZGVmYXVsdEV2ZW50SGFuZGxl
cik6IHByb3Blcmx5IHBhc3MgYWxvbmcgdGFyZ2V0IHZhbHVlcworCiAyMDA3LTA5LTIyICBPbGl2
ZXIgSHVudCAgPG9saXZlckBhcHBsZS5jb20+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZ
IChCdWlsZCBmaXgpLgpJbmRleDoga3N2ZzIvc3ZnL1NWR0FFbGVtZW50LmNwcAo9PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
Ci0tLSBrc3ZnMi9zdmcvU1ZHQUVsZW1lbnQuY3BwCShyZXZpc2lvbiAyNTcxNSkKKysrIGtzdmcy
L3N2Zy9TVkdBRWxlbWVudC5jcHAJKHdvcmtpbmcgY29weSkKQEAgLTEyNywxMCArMTI3LDggQEAg
dm9pZCBTVkdBRWxlbWVudDo6ZGVmYXVsdEV2ZW50SGFuZGxlcihFdgogICAgICAgICBTdHJpbmcg
eGxpbmt0YXJnZXQgPSBnZXRBdHRyaWJ1dGUoWExpbmtOYW1lczo6c2hvd0F0dHIpOwogICAgICAg
ICBpZiAoZSAmJiBlLT5idXR0b24oKSA9PSBNaWRkbGVCdXR0b24pCiAgICAgICAgICAgICB0YXJn
ZXQgPSAiX2JsYW5rIjsKLSAgICAgICAgZWxzZSBpZiAoeGxpbmt0YXJnZXQgPT0gIm5ldyIgfHwg
ISh0YXJnZXQuaXNFbXB0eSgpIHx8IHRhcmdldCA9PSAiX3NlbGYiKSkKLSAgICAgICAgICAgIHRh
cmdldCA9ICJfYmxhbmsiOwotICAgICAgICBlbHNlIC8vIGRlZmF1bHQgaXMgcmVwbGFjZS9fc2Vs
ZgotICAgICAgICAgICAgdGFyZ2V0ID0gIl9zZWxmIjsKKyAgICAgICAgZWxzZSBpZiAodGFyZ2V0
LmlzRW1wdHkoKSkgLy8gaWYgdGFyZ2V0IGlzIGVtcHR5LCBkZWZhdWx0IHRvICJfc2VsZiIgb3Ig
dXNlIHhsaW5rOnRhcmdldCBpZiBzZXQKKyAgICAgICAgICAgIHRhcmdldCA9ICh4bGlua3Rhcmdl
dCA9PSAibmV3IikgPyAiX2JsYW5rIiA6ICJfc2VsZiI7CiAKICAgICAgICAgU3RyaW5nIHVybCA9
IHBhcnNlVVJMKGhyZWYoKSk7CiAgICAgICAgIGlmICghZXZ0LT5kZWZhdWx0UHJldmVudGVkKCkp
Cg==
</data>
<flag name="review"
          id="6895"
          type_id="1"
          status="+"
          setter="rwlbuis"
    />
          </attachment>
      

    </bug>

</bugzilla>