<?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>41670</bug_id>
          
          <creation_ts>2010-07-06 02:33:50 -0700</creation_ts>
          <short_desc>Pages that perform a redirect can break back navigation</short_desc>
          <delta_ts>2010-08-18 08:32:03 -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>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ben Murdoch">benm</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>beidson</cc>
    
    <cc>darin</cc>
    
    <cc>mihaip</cc>
    
    <cc>phanna</cc>
    
    <cc>steveblock</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>246964</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Murdoch">benm</who>
    <bug_when>2010-07-06 02:33:50 -0700</bug_when>
    <thetext>This issue is most easily reproducible with Wikipedia&apos;s mobile site.

- Change your user agent in Safari to Mobile Safari
- Navigate to Wikipedia.org, click through to an article
- Now try to navigate back - you will be unable to leave Wikipedia as back takes you to a page that performs a redirect.

It looks like Firefox adds a history entry for the page that has the redirect, but seems to skip it for back navigation.

This may be related to https://bugs.webkit.org/show_bug.cgi?id=30224</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247080</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-07-06 08:16:58 -0700</bug_when>
    <thetext>The title of the bug says “are added to the history” and “break back navigation”. It seems to me that it’s only the latter part that’s a bug. It is probably OK to have the redirect added to the global history, and as you say, Firefox does.

What about IE, by the way?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>247164</commentid>
    <comment_count>2</comment_count>
    <who name="Ben Murdoch">benm</who>
    <bug_when>2010-07-06 12:00:17 -0700</bug_when>
    <thetext>I&apos;m not sure what IE does as I don&apos;t know how to set it&apos;s UA to a mobile browser to trigger the problem on Wikipedia. I&apos;ve been struggling a bit to find a desktop site that has this odd behavior.

Wikipedia loads this script: http://bits.wikimedia.org/w/extensions/WikimediaMobile/MobileRedirect.js?2

which triggers the problematic redirect. I&apos;ve been trying to write a reduced test case to avoid the need to load mobile wikipedia to repro the bug, but haven&apos;t been able to yet. That redirect script looks pretty simple, I&apos;m not sure why it seems to be causing this odd behaviour. Maybe someone more experienced with the history navigation code may have some ideas.

Cheers, Ben</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>266119</commentid>
    <comment_count>3</comment_count>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2010-08-18 08:32:03 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/65340 from bug 42861 fixes this (verified in the most recent nightly build).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>