<?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>48117</bug_id>
          
          <creation_ts>2010-10-22 00:41:13 -0700</creation_ts>
          <short_desc>History item and document.location change.</short_desc>
          <delta_ts>2010-10-25 06:33:32 -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>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P4</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jędrzej Nowacki">jedrzej.nowacki</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>jedrzej.nowacki</cc>
    
    <cc>mihaip</cc>
    
    <cc>msrinirao</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>297857</commentid>
    <comment_count>0</comment_count>
    <who name="Jędrzej Nowacki">jedrzej.nowacki</who>
    <bug_when>2010-10-22 00:41:13 -0700</bug_when>
    <thetext>Behavior of back / forward history changed between QtWebkit 2.0 and the trunk.

&lt;html&gt;
  &lt;head&gt;
    &lt;script&gt;
      document.location = &quot;another url&quot;;
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;&lt;/body&gt;
&lt;/html&gt;

I believe that page above should not create a history item in the B/F history, which is the current behavior. From user point of view there is no difference between document.location and http redirection.

Related mail thread (with real use case):
https://lists.webkit.org/pipermail/webkit-qt/2010-October/000902.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>297859</commentid>
    <comment_count>1</comment_count>
      <attachid>71532</attachid>
    <who name="Jędrzej Nowacki">jedrzej.nowacki</who>
    <bug_when>2010-10-22 00:44:21 -0700</bug_when>
    <thetext>Created attachment 71532
test

I would like to add this test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>298021</commentid>
    <comment_count>2</comment_count>
      <attachid>71532</attachid>
    <who name="Antonio Gomes">tonikitoo</who>
    <bug_when>2010-10-22 09:55:44 -0700</bug_when>
    <thetext>Comment on attachment 71532
test

Tests!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>298031</commentid>
    <comment_count>3</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-10-22 10:14:51 -0700</bug_when>
    <thetext>The commit-queue encountered the following flaky tests while processing attachment 71532:

java/lc3/JSObject/ToObject-001.html

Please file bugs against the tests.  The author(s) of the test(s) are ap@webkit.org and ap@webkit.org.  The commit-queue is continuing to process your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>298036</commentid>
    <comment_count>4</comment_count>
      <attachid>71532</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-10-22 10:15:39 -0700</bug_when>
    <thetext>Comment on attachment 71532
test

Clearing flags on attachment: 71532

Committed r70315: &lt;http://trac.webkit.org/changeset/70315&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>298037</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-10-22 10:15:45 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>298195</commentid>
    <comment_count>6</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-10-22 14:52:30 -0700</bug_when>
    <thetext>FWIW, this behavior already had tests (e.g. http/tests/history/redirect-js-location-before-load.html), which were updated when the change was made: http://trac.webkit.org/changeset/65340.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>298745</commentid>
    <comment_count>7</comment_count>
    <who name="Jędrzej Nowacki">jedrzej.nowacki</who>
    <bug_when>2010-10-25 00:27:57 -0700</bug_when>
    <thetext>(In reply to comment #6)
&gt; FWIW, this behavior already had tests (e.g. http/tests/history/redirect-js-location-before-load.html), which were updated when the change was made: http://trac.webkit.org/changeset/65340.

True, I&apos;ve missed that one. Do you think it is worth to revert my test? If yes I can do it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>298816</commentid>
    <comment_count>8</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-10-25 06:33:32 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; (In reply to comment #6)
&gt; &gt; FWIW, this behavior already had tests (e.g. http/tests/history/redirect-js-location-before-load.html), which were updated when the change was made: http://trac.webkit.org/changeset/65340.
&gt; 
&gt; True, I&apos;ve missed that one. Do you think it is worth to revert my test? If yes I can do it.

No, I think it&apos;s fine to leave as is. However, if you&apos;re going to be making other history-related changes, you may want to add tests to that directory instead.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>71532</attachid>
            <date>2010-10-22 00:44:21 -0700</date>
            <delta_ts>2010-10-22 10:15:39 -0700</delta_ts>
            <desc>test</desc>
            <filename>test.diff</filename>
            <type>text/plain</type>
            <size>2340</size>
            <attacher name="Jędrzej Nowacki">jedrzej.nowacki</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL0xheW91dFRlc3RzL0NoYW5nZUxvZyBiL0xheW91dFRlc3RzL0NoYW5nZUxv
ZwppbmRleCA0ZDkwYTlmLi44YTM0MjI1IDEwMDY0NAotLS0gYS9MYXlvdXRUZXN0cy9DaGFuZ2VM
b2cKKysrIGIvTGF5b3V0VGVzdHMvQ2hhbmdlTG9n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