Bug 81094
Summary: | Hitting the backbutton to a page that had pushStates loads the data from the lastest XHR | ||
---|---|---|---|
Product: | WebKit | Reporter: | Marten Schilstra <martenschilstra> |
Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
Status: | UNCONFIRMED | ||
Severity: | Normal | CC: | ap, gavinp |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Marten Schilstra
How to reproduce:
- Visit a page that uses a pjax*
- Then load up a random other page that gets loaded with pjax.
- Hit the back button.
What happens:
- The browser shows the html document loaded with the last ajax request.
What should happen:
- The browser should load the full page it came from + fire a popstate event.
Tested this in Chrome 17 and Safari 5.1.2
* a combination of pushState + ajax => pjax http://martndemus.nl is a site that uses pjax
see http://pjax.heroku.com/ for details about the principle.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Marten Schilstra
I mistyped my how to repro:
How to reproduce:
- Visit a page that uses a pjax*
- Then load up a random other page of the same sit that gets loaded with pjax.
- Then visit some other website.
- Hit the back button.
Alexey Proskuryakov
I tried followed the below steps in Safari 5.1.3:
1. Open http://martndemus.nl
2. Click Portfolio at the top
3. Open http://www.apple.com
4. Click Back button in Safari
The portfolio page looked just like before. Were these correct steps to reproduce?
Marten Schilstra
I updated Safari to 5.1.4, that fixed the problem for me in Safari, still happens in Chrome, will go and file a bug there.
Gavin Peters
He filed this chrome bug: http://code.google.com/p/chromium/issues/detail?id=118210