Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not mark navigations interupted with same-document navigations as aborted #18109

Merged
merged 2 commits into from May 3, 2019

Conversation

Projects
None yet
4 participants
@MarshallOfSound
Copy link
Member

commented May 1, 2019

Fixes #17526

This is probably the closest thing we can get to something that makes everyone happy. Virtual navigations are now ignored, actually interrupting the loadURL call with another loadURL call still correctly rejects the first promise.

Notes: Fixed case where the promise returned by loadURL and loadFile would be rejected with ERR_ABORTED if you triggered a virtual navigation before the page had finished loading. E.g. Used history.pushState or set location.hash

@MarshallOfSound MarshallOfSound requested a review from nornagon May 1, 2019

@deepak1556

This comment has been minimized.

Copy link
Member

commented May 1, 2019

Can you add a spec based on the issue sample. Thanks!

@vladimiry

This comment has been minimized.

Copy link

commented May 2, 2019

Also please consider making ERR_ABORTED error message a little more detailed.

@electron-cation electron-cation bot removed the new-pr 🌱 label May 2, 2019

@MarshallOfSound MarshallOfSound force-pushed the do-not-abort-virtual-routing branch from dbc93e6 to 91e6985 May 3, 2019

@MarshallOfSound MarshallOfSound merged commit 636273b into master May 3, 2019

6 checks passed

Semantic Pull Request ready to be squashed
Details
appveyor: win-ia32-testing AppVeyor build succeeded
Details
appveyor: win-ia32-testing-pr AppVeyor build succeeded
Details
appveyor: win-x64-testing AppVeyor build succeeded
Details
appveyor: win-x64-testing-pr AppVeyor build succeeded
Details
release-notes Release notes found
@release-clerk

This comment has been minimized.

Copy link

commented May 3, 2019

Release Notes Persisted

Fixed case where the promise returned by loadURL and loadFile would be rejected with ERR_ABORTED if you triggered a virtual navigation before the page had finished loading. E.g. Used history.pushState or set location.hash

@MarshallOfSound MarshallOfSound deleted the do-not-abort-virtual-routing branch May 3, 2019

@trop

This comment has been minimized.

Copy link
Contributor

commented May 3, 2019

I have automatically backported this PR to "5-0-x", please check out #18142

@trop

This comment has been minimized.

Copy link
Contributor

commented May 3, 2019

I have automatically backported this PR to "6-0-x", please check out #18143

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.