Repository navigation
fix: do not create node environment in child window if node integration is not enabled - #15076
Merged
Merged
Conversation
This was referenced Oct 11, 2018
Member
We'd have to do that in 5.x to follow semver (deprecate / warn in 4.x) |
zcbenz
force-pushed
the
no-node-integration-in-child-window
branch
from
October 12, 2018 06:56
1054b57 to
486300e
Compare
Contributor
Author
|
Manually backported to 2-0-x and 3-0-x as in above links. I'll create new PRs that: |
zcbenz
force-pushed
the
no-node-integration-in-child-window
branch
from
October 16, 2018 00:27
486300e to
d4c9908
Compare
MarshallOfSound
approved these changes
Oct 16, 2018
MarshallOfSound
left a comment
Member
There was a problem hiding this comment.
Conflicting but seems 🆗
zcbenz
force-pushed
the
no-node-integration-in-child-window
branch
from
October 16, 2018 08:01
d4c9908 to
fb36cff
Compare
|
Release Notes Persisted
|
This was referenced Oct 16, 2018
zcbenz
pushed a commit
that referenced
this pull request
Oct 25, 2018
…on (#15213) * fix: child window with nativeWindowOpen should disable node integration * Revert "fix: do not enable node integration in child window if not enabled (#15076)" This reverts commit 0252d76. This patch is not needed anymore since we are force disabling node integration for child windows.
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Since we don't release Node environments (to avoid crashes), child windows opened with
nativeWindowOpenoption will have their V8 contexts leaks. This PR avoids creating Node environment in child windows if the node integration is not enabled there.So this PR serves as a partial fix for #12634, users should make sure node integration is not enabled in the child windows to avoid memory leaks.
As a complete fix for this problem, I propose:
nativeWindowOpen.Checklist
npm testpassesRelease Notes
Notes: Partially fix the memory leak when opening child windows with
nativeWindowOpen.