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 LoadingAssignee: Nobody <webkit-unassigned>
Status: UNCONFIRMED    
Severity: Normal CC: ap, gavinp
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Marten Schilstra
Reported 2012-03-14 04:25:02 PDT
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
Marten Schilstra
Comment 1 2012-03-14 04:26:38 PDT
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
Comment 2 2012-03-14 10:31:24 PDT
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
Comment 3 2012-03-14 11:27:43 PDT
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
Comment 4 2012-09-14 01:36:11 PDT
Note You need to log in before you can comment on or make changes to this bug.