Skip to content

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

Merged
MarshallOfSound merged 2 commits into
masterfrom
do-not-abort-virtual-routing
May 3, 2019
Merged

fix: do not mark navigations interupted with same-document navigations as aborted#18109
MarshallOfSound merged 2 commits into
masterfrom
do-not-abort-virtual-routing

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

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 22:34
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 1, 2019
@deepak1556

Copy link
Copy Markdown
Member

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

@vladimiry

Copy link
Copy Markdown

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

@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label May 2, 2019
@MarshallOfSound MarshallOfSound force-pushed the do-not-abort-virtual-routing branch from dbc93e6 to 91e6985 Compare May 3, 2019 22:04
@MarshallOfSound MarshallOfSound merged commit 636273b into master May 3, 2019
@release-clerk

release-clerk Bot commented May 3, 2019

Copy link
Copy Markdown

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

@trop

trop Bot commented May 3, 2019

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented May 3, 2019

Copy link
Copy Markdown
Contributor

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

loadURL / loadFile calls throw "ERR_ABORTED (-3) error" if location.hash or history.pushState called on the page before page loaded

6 participants