Skip to content

Conversation

@miniak
Copy link
Contributor

@miniak miniak commented Jun 3, 2023

Description of Change

Allows enabling the experimental https://nodejs.org/api/cli.html#--frozen-intrinsics

Checklist

Release Notes

Notes: Added webPreferences.frozenIntrinsics, which passes --frozen-intrinsics to node.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Jun 3, 2023
@miniak miniak self-assigned this Jun 3, 2023
@miniak miniak added the wip ⚒ label Jun 3, 2023
@miniak miniak force-pushed the miniak/frozen-intrinsics branch from 89889a8 to 20339aa Compare June 3, 2023 23:43
@miniak miniak force-pushed the miniak/frozen-intrinsics branch 2 times, most recently from 00944ef to 45e733a Compare June 4, 2023 23:49
@miniak miniak changed the title feat: add support for node's --frozen-intrinsics option feat: add support for node --frozen-intrinsics option Jun 4, 2023
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Jun 10, 2023
@miniak miniak force-pushed the miniak/frozen-intrinsics branch 2 times, most recently from b37e361 to 093997d Compare August 6, 2023 19:22
@miniak miniak changed the title feat: add support for node --frozen-intrinsics option feat: add webPreferences.frozenIntrinsics Aug 6, 2023
@miniak miniak force-pushed the miniak/frozen-intrinsics branch 3 times, most recently from ee2f793 to 1944ce9 Compare August 6, 2023 22:10
@miniak miniak removed the wip ⚒ label Aug 6, 2023
@miniak miniak marked this pull request as ready for review August 6, 2023 22:11
@miniak miniak requested a review from a team as a code owner August 6, 2023 22:11
@miniak miniak requested a review from MarshallOfSound August 6, 2023 22:11
@miniak miniak changed the title feat: add webPreferences.frozenIntrinsics feat: add webPreferences.frozenIntrinsics Aug 6, 2023
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Aug 6, 2023
@miniak miniak added semver/minor backwards-compatible functionality target/26-x-y PR should also be added to the "26-x-y" branch. labels Aug 6, 2023
Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

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

Your PR body doesn't describe the goal of adding this option - why is it something developers would want to enable? What benefits does it confer and where could someone read more about that? Given it's experimental in Node.js, should we wait until it's stable?

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Aug 13, 2023
@github-actions github-actions bot added the target/27-x-y PR should also be added to the "27-x-y" branch. label Aug 16, 2023
@miniak miniak force-pushed the miniak/frozen-intrinsics branch from 1944ce9 to 28e03dd Compare September 30, 2023 17:14
Copy link
Member

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

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

API LGTM

@github-actions github-actions bot added the target/28-x-y PR should also be added to the "28-x-y" branch. label Oct 11, 2023
Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

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

API LGTM

@codebytere codebytere force-pushed the miniak/frozen-intrinsics branch from 5f36197 to b4714ca Compare November 15, 2023 14:57
@github-actions github-actions bot added the target/29-x-y PR should also be added to the "29-x-y" branch. label Dec 6, 2023
@miniak miniak force-pushed the miniak/frozen-intrinsics branch from cfdcc9d to 94b9feb Compare December 10, 2023 14:07
@miniak miniak removed target/26-x-y PR should also be added to the "26-x-y" branch. target/27-x-y PR should also be added to the "27-x-y" branch. target/28-x-y PR should also be added to the "28-x-y" branch. labels Dec 11, 2023
@miniak miniak force-pushed the miniak/frozen-intrinsics branch from 94b9feb to 6ba8835 Compare December 11, 2023 17:47
Copy link
Contributor

@zcbenz zcbenz left a comment

Choose a reason for hiding this comment

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

The API name implies all intrinsics in the WebContents will be frozen, but it seems that this only affects the intrinsics in Node context?

If this means to be Node context only, I think the API name should make that explicit, or we can probably add a nodeIntegrationArgs: [] options instead.

every iframe, you can use `process.isMainFrame` to determine if you are
in the main frame or not.
* `frozenIntrinsics` boolean (optional) - Experimental option for passing
[`--frozen-intrinsics`](https://nodejs.org/api/cli.html#--frozen-intrinsics) to Node.js.
Copy link
Contributor

Choose a reason for hiding this comment

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

The document should clarity whether this requires nodeIntegration: true to work, and how it works with contextIsolate: true.

coyotie24

This comment was marked as spam.

@github-actions github-actions bot added the target/30-x-y PR should also be added to the "30-x-y" branch. label Feb 21, 2024
@github-actions github-actions bot added the target/31-x-y PR should also be added to the "31-x-y" branch. label Apr 17, 2024
@samuelmaddock
Copy link
Member

@miniak is there still interest in adding this feature?

@github-actions github-actions bot added the target/32-x-y PR should also be added to the "32-x-y" branch. label Jun 12, 2024
@github-actions github-actions bot added the target/33-x-y PR should also be added to the "33-x-y" branch. label Aug 20, 2024
@github-actions github-actions bot added the target/34-x-y PR should also be added to the "34-x-y" branch. label Oct 15, 2024
@miniak miniak removed target/29-x-y PR should also be added to the "29-x-y" branch. target/30-x-y PR should also be added to the "30-x-y" branch. target/31-x-y PR should also be added to the "31-x-y" branch. labels Jan 13, 2025
@github-actions github-actions bot added the target/35-x-y PR should also be added to the "35-x-y" branch. label Jan 15, 2025
@samuelmaddock
Copy link
Member

I'm closing this for now, but feel free to reopen after rebasing.

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

Labels

api-review/approved ✅ semver/minor backwards-compatible functionality stale target/32-x-y PR should also be added to the "32-x-y" branch. target/33-x-y PR should also be added to the "33-x-y" branch. target/34-x-y PR should also be added to the "34-x-y" branch. target/35-x-y PR should also be added to the "35-x-y" branch. wip ⚒

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants