<?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>22224</bug_id>
          
          <creation_ts>2008-11-12 18:19:45 -0800</creation_ts>
          <short_desc>window.location.replace seems to save the session history</short_desc>
          <delta_ts>2011-06-30 18:28:59 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>42861</dup_id>
          
          <bug_file_loc>http://desktop.nostdal.org/~lnostdal/test.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Anantha Keesara">anantha</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>littlecooldude</cc>
    
    <cc>mihaip</cc>
    
    <cc>vermavee</cc>
    
    <cc>webkit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98572</commentid>
    <comment_count>0</comment_count>
    <who name="Anantha Keesara">anantha</who>
    <bug_when>2008-11-12 18:19:45 -0800</bug_when>
    <thetext>chromium bug:http://code.google.com/p/chromium/issues/detail?id=1919

Code snippet:
&lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;

  &lt;body onload=&quot;var before = history.length;
                window.location.replace(&apos;#blah&apos;);
                var after = history.length;
                if(before != after)
                  alert(before + &apos; != &apos; + after);
                &quot;&gt;
    &lt;a href=&quot;test.html&quot;&gt;again..&lt;/a&gt;

    &lt;p/&gt;
    (also, it seems i need to click twice on the link for it to trigger a
reload .. which isn&apos;t the case in FF)
  &lt;/body&gt;
&lt;/html&gt;


..works as expected (does not add history entry) under FF, Opera and IE


Nightly tested: r38293</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>147869</commentid>
    <comment_count>1</comment_count>
    <who name="sunsean">littlecooldude</who>
    <bug_when>2009-09-17 11:42:33 -0700</bug_when>
    <thetext>This bug often causes infinite loops (when pressing the back button) on pages that attempt to set a default hash if there is none.

if(!location.hash) location.replace(&apos;#home&apos;);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>430922</commentid>
    <comment_count>2</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2011-06-30 18:28:59 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 42861 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>