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 register the node ESM loader in renderer processes #24301

Merged
merged 3 commits into from Jul 16, 2020

Conversation

MarshallOfSound
Copy link
Member

Only one ESM loader can be registered per isolate, in renderer processes this should be blink. This patches node so that it won't register its handler (overriding blinks) in non-browser processes.

Notes: no-notes

@MarshallOfSound MarshallOfSound requested a review from a team as a code owner June 25, 2020 16:32
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Jun 25, 2020
@deepak1556
Copy link
Member

Is it possible to add test for this change ?

@codebytere
Copy link
Member

codebytere commented Jun 25, 2020

@deepak1556 and @MarshallOfSound i think yes - we added the sandbox change to ARM to account for this here, so we should be able to remove it now. If it fails, we know this didn't have the intended effect.

@deepak1556
Copy link
Member

Failing vanilla node tests are related.

@codebytere
Copy link
Member

codebytere commented Jun 25, 2020

oh boy missed those - i think we'll need to ensure it's enabled in run as node mode @MarshallOfSound

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Jun 26, 2020
@codebytere
Copy link
Member

@MarshallOfSound can you rebase this against the accepted upstream solution: nodejs/node#34060

@codebytere codebytere changed the title fix: do not register the node ESM loader in renderer processes [wip] fix: do not register the node ESM loader in renderer processes Jul 15, 2020
@codebytere codebytere changed the title [wip] fix: do not register the node ESM loader in renderer processes fix: do not register the node ESM loader in renderer processes Jul 15, 2020
@release-clerk
Copy link

release-clerk bot commented Jul 16, 2020

No Release Notes

@codebytere codebytere deleted the fix-esm branch July 16, 2020 15:09
georgexu99 pushed a commit to georgexu99/electron that referenced this pull request Jul 28, 2020
georgexu99 pushed a commit to georgexu99/electron that referenced this pull request Jul 28, 2020
sentialx pushed a commit to sentialx/electron that referenced this pull request Jul 30, 2020
sentialx pushed a commit to sentialx/electron that referenced this pull request Apr 8, 2021
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.

None yet

3 participants