<?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>15486</bug_id>
          
          <creation_ts>2007-10-12 23:16:32 -0700</creation_ts>
          <short_desc>REGRESSION: Reload causes WebKit to *forget* fragment URLs</short_desc>
          <delta_ts>2008-04-03 22:15:30 -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>New Bugs</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>3580</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction, InRadar, Regression</keywords>
          <priority>P1</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>15554</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>zwarich</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>58399</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-10-12 23:16:32 -0700</bug_when>
    <thetext>Reload causes WebKit to *forget* fragment URLs

See attached test case.  Notice how the behavior is different when the page is first loaded (or loaded by hitting enter in the url bar, or dropping the file onto Safari) than when you hit &quot;reload&quot;.  Specifically the urls lose all of their fragments on reload!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58400</commentid>
    <comment_count>1</comment_count>
      <attachid>16651</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-10-12 23:27:52 -0700</bug_when>
    <thetext>Created attachment 16651
test case

This actually behaves differently than my non-reduced (multi-file) test case.  I may have to re-reduce that one to something that forgets the fragments all together.  This one seems to remember them (but incorrectly!?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58401</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-10-13 00:35:24 -0700</bug_when>
    <thetext>After further testing, this is a regression (albeit a strange one) from Safari 2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58402</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-10-13 00:36:23 -0700</bug_when>
    <thetext>I&apos;m surprised that pressing Enter in address bar and actually pressing Cmd+R produces different results - I thought both were supposed to perform the same action.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62657</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-11-28 23:00:02 -0800</bug_when>
    <thetext>&lt;rdar://problem/5619358&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74720</commentid>
    <comment_count>5</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-03-21 18:43:49 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; I&apos;m surprised that pressing Enter in address bar and actually pressing Cmd+R
&gt; produces different results - I thought both were supposed to perform the same
&gt; action.

I don&apos;t know whether they are supposed to do the same thing, but they don&apos;t. Hitting enter in the address bar will call FrameLoader::createHistoryItem(), but reloading doesn&apos;t do the same thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74786</commentid>
    <comment_count>6</comment_count>
    <who name="Cameron Zwarich (cpst)">zwarich</who>
    <bug_when>2008-03-22 02:34:41 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of 3580 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>16651</attachid>
            <date>2007-10-12 23:27:52 -0700</date>
            <delta_ts>2007-10-12 23:27:52 -0700</delta_ts>
            <desc>test case</desc>
            <filename>viewspec-parser.html</filename>
            <type>text/html</type>
            <size>1955</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">PGh0bWw+Cgo8Ym9keT4KPGRpdiBpZD0iY29uc29sZSI+PC9kaXY+CjxzY3JpcHQ+CgpmdW5jdGlv
biBkZWJ1ZyhzKSB7CiAgICB2YXIgbG9nRGl2ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImNv
bnNvbGUiKTsKICAgIGxvZ0Rpdi5hcHBlbmRDaGlsZChkb2N1bWVudC5jcmVhdGVUZXh0Tm9kZShz
KSk7CiAgICBsb2dEaXYuYXBwZW5kQ2hpbGQoZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgiYnIiKSk7
Cn0KCiAgICB2YXIgdGVzdE51bWJlciA9IDA7CiAgICB2YXIgdGVzdFN0cmluZyA9ICJbaW5pdGlh
bCB2aWV3XSIKCiAgICBmdW5jdGlvbiB0ZXN0RnJhZ21lbnQoc3RyaW5nKSB7CiAgICAgIHZhciBv
bGRFbWJlZCA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJvYmplY3QiKTsKICAgICAgaWYgKG9s
ZEVtYmVkKSB7CiAgICAgICAgb2xkRW1iZWQucGFyZW50Tm9kZS5yZW1vdmVDaGlsZChvbGRFbWJl
ZCk7CiAgICAgIH0KICAgICAgdmFyIGVtYmVkRWxlbWVudCA9IGRvY3VtZW50LmNyZWF0ZUVsZW1l
bnQoImlmcmFtZSIpOwogICAgICBlbWJlZEVsZW1lbnQuc2V0QXR0cmlidXRlKCJpZCIsICJvYmpl
Y3QiKTsKICAgICAgZW1iZWRFbGVtZW50LnNldEF0dHJpYnV0ZSgid2lkdGgiLCAiMTAwIik7CiAg
ICAgI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ICAgICB0ZXN0U3RyaW5nID0gInN2Z1ZpZXco
IiArIFN0cmluZy5mcm9tQ2hhckNvZGUoMCk7CiAgICAgICAgZWxzZSBpZiAodGVzdE51bWJlciA9
PSAzKQogICAgICAgICAgdGVzdFN0cmluZyA9ICJzdmdWaWV3KCIgKyBTdHJpbmcuZnJvbUNoYXJD
b2RlKDApICsgIikiOwogICAgICAgIGVsc2UgewogICAgICAgICAgZGVidWcoJzxicj48c3BhbiBj
bGFzcz0icGFzcyI+VEVTVCBDT01QTEVURTwvc3Bhbj4nKTsKICAgICAgICAgIHJldHVybjsKICAg
ICAgICB9CiAgICAgICAgdGVzdE51bWJlcisrOwogICAgICAgIAogICAgICAgIC8vIHRoaXMgbGV0
cyB1cyBvdXQgb2YgdGhlIG9ubG9hZCBoYW5kbGVyIHNvIHdlIGRvbid0IG92ZXJydW4gdGhlIHN0
YWNrCiAgICAgICAgd2luZG93LnNldFRpbWVvdXQoc3RhcnROZXh0VGVzdCwgMCk7CiAgICB9Ci8v
dGVzdEZyYWdtZW50KCIiKTsKd2luZG93LnNldFRpbWVvdXQodGVzdEZyYWdtZW50LCAxMDApOwo8
L3NjcmlwdD4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>