Skip to content

Conversation

@AlexHill
Copy link
Contributor

@AlexHill AlexHill commented Jun 5, 2014

This fixes the bug where, if the user clicks back while a PJAX request is loading, the originally requested page is displayed anyway once the XHR response arrives.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we want to load hello.html in this test? Won't just timeout.html suffice?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a remnant from when I had the pushState delay and this change in the same branch. Because browsers go to the n-1th page when you click back natively, you need to push something onto your history stack first if you're emulating that behaviour.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, if this is not necessary for this test, I'd like to see it removed.

@staabm
Copy link
Contributor

staabm commented Dec 4, 2014

@mislav any progress on this?

@mislav
Copy link
Collaborator

mislav commented Dec 4, 2014

This is an important thing to fix. Sorry for sitting on this for too long. I will review this for the next release.

@mislav mislav added the bug label Dec 4, 2014
@mislav mislav merged commit 5631350 into defunkt:master Mar 7, 2015
@AlexHill AlexHill deleted the popstate_aborts_xhr branch March 9, 2015 04:20
@AlexHill
Copy link
Contributor Author

AlexHill commented Mar 9, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants