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

MarshallOfSound
Copy link
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

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label May 1, 2019
@deepak1556
Copy link
Member

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

@vladimiry
Copy link

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

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label May 2, 2019
@release-clerk
Copy link

release-clerk bot 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

@trop
Copy link
Contributor

trop bot commented May 3, 2019

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

@trop
Copy link
Contributor

trop bot commented May 3, 2019

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

@sofianguy sofianguy added this to Fixed in 6.0.0-beta.2 in 6.1.x May 8, 2019
kiku-jw pushed a commit to kiku-jw/electron that referenced this pull request May 16, 2019
…s as aborted (electron#18109)

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

* spec: add tests for the loadURL promise
@sofianguy sofianguy added this to Fixed in 5.0.2 in 5.0.x Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
5.0.x
Fixed in 5.0.2
6.1.x
Fixed in 6.0.0-beta.2
5 participants