<?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>17598</bug_id>
          
          <creation_ts>2008-02-28 16:51:28 -0800</creation_ts>
          <short_desc>FrameLoader should treat all location changes during onload as redirects</short_desc>
          <delta_ts>2010-07-31 15:08:17 -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>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>42861</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="Peter Kasting">pkasting</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>grahamperrin</cc>
    
    <cc>mihaip</cc>
    
    <cc>sam</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>72311</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2008-02-28 16:51:28 -0800</bug_when>
    <thetext>Currently the FrameLoader treats some types of location changes as redirects: meta refresh 0, setting document.location.href (I think this is treated as a redirect at any time, though perhaps it should only be treated as such before/during onload).  Other cases can fall through the cracks, however.  For example, a page that has an onload handler that does a form.submit with a form action that&apos;s a different URL to load should be treated as a client redirect, but is not.

I think any location change before/during onload should be treated as a redirect, but the example above is the only concrete case where I know this doesn&apos;t happen; maybe there are others.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72312</commentid>
    <comment_count>1</comment_count>
    <who name="Brady Eidson">beidson</who>
    <bug_when>2008-02-28 17:21:23 -0800</bug_when>
    <thetext>Interesting.  

Wonder how hard it would be to concoct a series of tests to demonstrate Firefox and even IE&apos;s behavior, to compare against WebKit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>219106</commentid>
    <comment_count>2</comment_count>
    <who name="Peter Kasting">pkasting</who>
    <bug_when>2010-04-29 11:18:50 -0700</bug_when>
    <thetext>abarth has been doing some work on FrameLoader.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>258639</commentid>
    <comment_count>3</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-07-31 15:08:17 -0700</bug_when>
    <thetext>I&apos;ve been working on implementing this for my fix for bug 42861. The bug comments have test cases that compare Chrome, Safari, Firefox and IE&apos;s behavior in a bunch of scenarios, but briefly, changes to window.location.href up until the onload handler finishes running shouldn&apos;t generate a session history entry, but programmatic form submits should (if we want to be consistent with other browsers, the HTML 5 spec is silent on this matter).

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

    </bug>

</bugzilla>