<?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>18701</bug_id>
          
          <creation_ts>2008-04-23 13:24:06 -0700</creation_ts>
          <short_desc>Clicking on redirect link stores wrong entry in history</short_desc>
          <delta_ts>2013-04-12 17:21:03 -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>History</component>
          <version>525.x (Safari 3.1)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Julien Lecomte">julien.lecomte</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>grahamperrin</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>78693</commentid>
    <comment_count>0</comment_count>
    <who name="Julien Lecomte">julien.lecomte</who>
    <bug_when>2008-04-23 13:24:06 -0700</bug_when>
    <thetext>If you click on a link that redirects you to another web site, and then look at your history, the redirect URL will have been stored. Instead, the final URL should have been stored. Safari is the only browser acting this way (Firefox, IE and Opera all store the final URL)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78694</commentid>
    <comment_count>1</comment_count>
      <attachid>20775</attachid>
    <who name="Julien Lecomte">julien.lecomte</who>
    <bug_when>2008-04-23 13:27:06 -0700</bug_when>
    <thetext>Created attachment 20775
Test case</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78695</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-04-23 13:36:25 -0700</bug_when>
    <thetext>I think the behaviour should be slightly different than you describe:  a 301 (Moved Permanently) redirect should result in the destination URL being stored in history, while the temporary redirects (302, 303, 307) should result in the original URL being stored.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78696</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-04-23 13:36:46 -0700</bug_when>
    <thetext>&lt;rdar://problem/5884523&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78697</commentid>
    <comment_count>4</comment_count>
    <who name="Julien Lecomte">julien.lecomte</who>
    <bug_when>2008-04-23 13:43:32 -0700</bug_when>
    <thetext>FF, IE and Opera store the destination URL in the case of a 302. Why shouldn&apos;t Safari adopt that behavior? It seems more logical to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97382</commentid>
    <comment_count>5</comment_count>
    <who name="Graham Perrin">grahamperrin</who>
    <bug_when>2008-11-01 19:09:38 -0700</bug_when>
    <thetext>(In reply to comment #4)

&gt;&gt; temporary redirects (302, 303, 307) 

&gt; FF, IE and Opera store the destination URL in the case of a 302. 

To me it seems most logical to 

 * not store something temporary
 * store something more persistent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>875065</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-04-12 17:17:09 -0700</bug_when>
    <thetext>Mark, is this an issue in WebKit, or outside it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>875066</commentid>
    <comment_count>7</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2013-04-12 17:20:00 -0700</bug_when>
    <thetext>This is an issue in Safari, not WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>875067</commentid>
    <comment_count>8</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2013-04-12 17:21:03 -0700</bug_when>
    <thetext>And just so no-one gets upset about the resolution, the issue is being tracked via the Radar number mentioned earlier in the comments.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>20775</attachid>
            <date>2008-04-23 13:27:06 -0700</date>
            <delta_ts>2008-04-23 13:27:06 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>test-case.html</filename>
            <type>text/html</type>
            <size>261</size>
            <attacher name="Julien Lecomte">julien.lecomte</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEvL0VOIiAiaHR0cDov
L3d3dy53My5vcmcvVFIvaHRtbDQvc3RyaWN0LmR0ZCI+DQo8aHRtbD4NCiAgPGhlYWQ+DQogICAg
PHRpdGxlPjwvdGl0bGU+DQogIDwvaGVhZD4NCiAgPGJvZHk+CiAgICA8ZGl2Pg0KICAgICAgPGEg
aHJlZj0iaHR0cDovL3Rpbnl1cmwuY29tLzZvOTI5dSI+SnVsaWVuIExlY29tdGUncyBCbG9nPC9h
Pg0KICAgIDwvZGl2Pg0KICA8L2JvZHk+DQo8L2h0bWw+
</data>

          </attachment>
      

    </bug>

</bugzilla>