Bug 4072

Summary: Pressing back in browser misses out a page.
Product: WebKit Reporter: David Storey <dstorey>
Component: New BugsAssignee: Trey Matteson <trey>
Status: RESOLVED FIXED    
Severity: Minor CC: trey
Priority: P3    
Version: 312.x   
Hardware: Mac   
OS: OS X 10.3   
URL: http://www.liverpoolfc.tv/
Attachments:
Description Flags
proposed patch darin: review+

David Storey
Reported 2005-07-19 12:02:30 PDT
Steps to reproduce: Go to http://www.liverpoolfc.tv/ (It should redirect to a splash page if it is your first visit), Click "Enter Liverpool FC TV", Click on a news item (Such as "WATCH TONIGHT'S GAME LIVE ON .TV"), Press back in the browser. Expected output: Should return to the homepage Actual output: Returns to the splash page, missing out the homepage. This works in Opera, Gecko and IE/Mac. Note the the site uses a cookie so that the splash page only shows once a day, so it will not work if you have already visited the site today. trey2 on irc mentioned: "part of the puzzle is that when you click on the "enter site" link, you go again to the same URL that you started with. Safari sees that as the user going to the same place twice in a row, which doesn't create a second back/forward item. Which still doesn't explain the misbehavior..I think the root of the problem is that the single b/f item has the resulting address after redirects have happened, and that doesn't get updated by the fact that the second visit to the same URL does not yield a redirect (because of the cookie)." I will try to write a reduction in a while.
Attachments
proposed patch (1.94 KB, patch)
2005-07-19 21:20 PDT, Trey Matteson
darin: review+
Trey Matteson
Comment 1 2005-07-19 21:20:18 PDT
Created attachment 3024 [details] proposed patch
John Sullivan
Comment 2 2005-07-20 10:20:24 PDT
Comment on attachment 3024 [details] proposed patch Patch looks good. Please explain how you tested.
Trey Matteson
Comment 3 2005-07-20 13:27:51 PDT
Primarily I tested the case described in the bug, as the fix is fairly specific to the odd case of the fetching the same URL resulting in arriving at 2 different final URLs (because of redirects that are dependend on cookies). I also did some basic testing of refreshing a page and reloading a page, to look for major regressions.
Darin Adler
Comment 4 2005-07-25 20:25:00 PDT
Comment on attachment 3024 [details] proposed patch Looks good to me, r=me.
Darin Adler
Comment 5 2005-07-25 20:25:14 PDT
Comment on attachment 3024 [details] proposed patch Looks good, r=me.
Justin Garcia
Comment 6 2005-07-26 19:16:44 PDT
Landing this...
Note You need to log in before you can comment on or make changes to this bug.