[Webkit-unassigned] [Bug 42861] Session history should skip over JS redirects

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 26 18:17:04 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=42861





--- Comment #9 from Mihai Parparita <mihaip at chromium.org>  2010-07-26 18:17:04 PST ---
I've uploaded a strawman proposal that implements the a (hopefully) minimally invasive change: also lock the back forward list if the location change happens before the onload event and is not in response to a user gesture.

The "user gesture" test was added to handle this test case: http://persistent.info/webkit/test-cases/redirects/delayed-onload.php. The initial page contents (up to the link) are flushed but the page doesn't finish loading for 10 seconds. Since the user has time to see the link and click on it, a new history entry should be generate for this page.

With this patch, the table that I generated in comment 3 looks like this:

          Chrome     WebKit  Firefox  IE 8
fragment  
  onload  g.com      g.com    g.com    g.com
  200ms   g.com      page    page     g.com
  1000ms  g.com      page    page     g.com
  5000ms  g.com      page    page     g.com
  6000ms  page       page    page     g.com
page
  onload  g.com      g.com    g.com    page
  200ms   g.com      page    page     page
  1000ms  g.com      page    page     page
  5000ms  page       page    page     page
  6000ms  page       page    page     page

Additionally, pressing back from after going to http://ww.hp.com/ (which JS redirects to http://www.hp.com/#Product during onload) works as expected.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list