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: handle a race condition between preload scripts executing and navigations (backport: 5-0-x) #17597

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Mar 28, 2019

Backport of #17577

See that PR for details.

Notes: Fixed issue where preload scripts would sometimes run twice in the same process in different contexts resulting in broken native node module loading.

…vigations

There is a race condition between DidCreateScriptContext and another
navigation occuring in the main process. If the navigation occurs while
the preload script is running, the same process is re-used.  This
ensures that any pending navigations are completely removed / ignored
when we trigger a new navigation.

Fixes electron#17576
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Mar 28, 2019
@trop trop bot added 5-0-x backport This is a backport PR labels Mar 28, 2019
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Mar 28, 2019
@MarshallOfSound MarshallOfSound merged commit 9e12e8c into electron:5-0-x Mar 28, 2019
@release-clerk
Copy link

release-clerk bot commented Mar 28, 2019

Release Notes Persisted

Fixed issue where preload scripts would sometimes run twice in the same process in different contexts resulting in broken native node module loading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5-0-x backport This is a backport PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant