Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@codebytere
Copy link
Member

Description of Change

Closes #48912

Tracks the target of a pending navigation during beforeunload and, if the unload isn’t prevented, aborts the next load with a descriptive did-fail-load (ERR_ABORTED) instead of letting it fail generically. Also improves docs to point to will-prevent-unload behavior around loadURL.

Checklist

Release Notes

Notes: none

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/39-x-y PR should also be added to the "39-x-y" branch. target/40-x-y PR should also be added to the "40-x-y" branch. labels Nov 14, 2025
@electron-cation electron-cation bot added new-pr 🌱 PR opened recently and removed new-pr 🌱 PR opened recently labels Nov 14, 2025
Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

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

LGTM, pending windows test needing path fixes.

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

Labels

semver/patch backwards-compatible bug fixes target/39-x-y PR should also be added to the "39-x-y" branch. target/40-x-y PR should also be added to the "40-x-y" branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

loadURL fails with Error: ERR_FAILED (-2) loading 'https://example.org/' when the current page has a beforeunload handler

3 participants