<?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>14499</bug_id>
          
          <creation_ts>2007-07-02 14:50:47 -0700</creation_ts>
          <short_desc>DOM history object is not updated properly</short_desc>
          <delta_ts>2010-01-18 23:55:40 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>24472</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="Sridhar Gurivireddy">just1gb</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>johneseif</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5710</commentid>
    <comment_count>0</comment_count>
    <who name="Sridhar Gurivireddy">just1gb</who>
    <bug_when>2007-07-02 14:50:47 -0700</bug_when>
    <thetext>new URLs entered into the address bar should be part of DOM history object

Repro:
1) Load attached file into Safari on Windows
2) Then enter CNN.com in the address bar
3) Navigate CNN.com and browse couple of links deep
4) navigate back to the original test page
4) Click on link &quot;Test History length&quot;
5) History length would still show as &quot;1&quot;

Other browsers like IE and Firefox update properly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5707</commentid>
    <comment_count>1</comment_count>
      <attachid>15355</attachid>
    <who name="Sridhar Gurivireddy">just1gb</who>
    <bug_when>2007-07-02 14:51:47 -0700</bug_when>
    <thetext>Created attachment 15355
Launch the test to see why history object is not updated properly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5286</commentid>
    <comment_count>2</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-07-07 09:19:05 -0700</bug_when>
    <thetext>Confirmed that the history length differs in the attached test case using a local debug build of WebKit r24013 with Safari 3.0 (522.12) on Mac OS X 10.4.10.

Note that there is a bug in the &quot;Go to a specific index in history&quot; feature since the text field has name=&quot;history_index_input&quot; instead of id=&quot;history_index_input&quot;:

window.history.go(document.getElementById(&apos;history_index_input&apos;).value);  // bug
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5280</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-07-07 09:22:17 -0700</bug_when>
    <thetext>The behavior is the same in Safari 2.0.4 (419.3) with original WebKit on Mac OS X 10.4.10 (8R218), so this is not a regression.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77612</commentid>
    <comment_count>4</comment_count>
    <who name="John Seif">johneseif</who>
    <bug_when>2008-04-14 13:50:44 -0700</bug_when>
    <thetext>I think the problem is in FrameLoader::getHistoryLength()

return page-&gt;backForwardList()-&gt;backListCount() + 1;

should be

return page-&gt;backForwardList()-&gt;backListCount() + 1 + page-&gt;backForwardList()-&gt;forwardListCount();

to match Firefox.  Without the +1, it would match IE (which also counts pages in the forward history).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182156</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2010-01-18 23:54:46 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 24472 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>15355</attachid>
            <date>2007-07-02 14:51:47 -0700</date>
            <delta_ts>2007-07-02 14:51:47 -0700</delta_ts>
            <desc>Launch the test to see why history object is not updated properly</desc>
            <filename>history.html</filename>
            <type>text/html</type>
            <size>1766</size>
            <attacher name="Sridhar Gurivireddy">just1gb</attacher>
            
              <data encoding="base64">PEhUTUw+DQo8SEVBRD4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+ICBhOmFjdGl2ZSB7Y29sb3I6
Z3JlZW59PC9zdHlsZT4NCjxUSVRMRT4gVEVTVCBDQVNFUyBGT1IgSElTVE9SWSBPQkpFQ1QgPC9U
SVRMRT4NCjwvSEVBRD4NCg0KPEJPRFk+DQoNCjxhIGhyZWY9ImphdmFzY3JpcHQ6aGlzdG9yeS5i
YWNrKCk7Ij4gR28gQmFjayA8L2E+IDxCUj4NCjxhIGhyZWY9ImphdmFzY3JpcHQ6aGlzdG9yeS5m
b3J3YXJkKCk7Ij4gR28gRm9yd2FyZCA8L2E+IDxCUj4NCjxhIGhyZWY9ImphdmFzY3JpcHQ6dGVz
dEhpc3RvcnlMZW5ndGgoKTsiPiBUZXN0IEhpc3RvcnkgbGVuZ3RoIDwvYT4gPEJSPg0KDQoNCjxm
b3JtICBpZD0iZm9ybUlEIiBhY3Rpb249ImphdmFzY3JpcHQ6aGlzdG9yeUdvKCk7IiA+DQpHbyB0
byBhIHNwZWNpZmljIGluZGV4IGluIGhpc3Rvcnk6IDxpbnB1dCB0eXBlPSJ0ZXh0IiBuYW1lPSJo
aXN0b3J5X2luZGV4X2lucHV0Ij4NCjxpbnB1dCB0eXBlPSJzdWJtaXQiIHZhbHVlPSJTdWJtaXQi
Pg0KPC9mb3JtPg0KDQo8Zm9ybSAgaWQ9ImZvcm1JRCIgYWN0aW9uPSJqYXZhc2NyaXB0Omhpc3Rv
cnlHb0J5VXJsKCk7IiA+DQpHbyB0byBhIHNwZWNpZmljIFVSTCBpbiBoaXN0b3J5OiA8aW5wdXQg
dHlwZT0idGV4dCIgbmFtZT0iaGlzdG9yeV91cmxfaW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