Skip to content

Conversation

@codebytere
Copy link
Member

Refs electron/electron#36567.

This PR allows for embedder control over whether or not code generation from strings is allowed. This is particularly important for embedders that combine Node and Blink, as Electron does, because Blink must be able to make Content Security Policy-based decisions. Without the ability to control this, we experience crashes.

This allows Electron to remove a patch we currently float to enable this.

@codebytere codebytere added the embedding Issues and PRs related to embedding Node.js in another project. label Jan 26, 2023
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Jan 26, 2023
@targos
Copy link
Member

targos commented Jan 26, 2023

@nodejs/cpp-reviewers

@addaleax addaleax added the semver-major PRs that contain breaking changes and should be released in the next major version. label Jan 26, 2023
Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

LGTM

@codebytere codebytere force-pushed the allow-embedder-codegen-control branch from 8c13d11 to fb174f5 Compare January 30, 2023 19:30
@addaleax addaleax added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Jan 30, 2023
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 30, 2023
@nodejs-github-bot
Copy link
Collaborator

@codebytere codebytere force-pushed the allow-embedder-codegen-control branch from fb174f5 to 78e7268 Compare January 30, 2023 19:52
@addaleax addaleax added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 30, 2023
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 30, 2023
@nodejs-github-bot
Copy link
Collaborator

@codebytere codebytere added semver-minor PRs that contain new features and should be released in the next minor version. and removed semver-major PRs that contain breaking changes and should be released in the next major version. labels Jan 31, 2023
@codebytere codebytere force-pushed the allow-embedder-codegen-control branch from 78e7268 to 885fce8 Compare January 31, 2023 10:53
@codebytere codebytere added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 31, 2023
Copy link
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

(just re-approving so that CQ doesn’t complain when merging this)

@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 31, 2023
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@codebytere codebytere added the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 3, 2023
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 3, 2023
@nodejs-github-bot nodejs-github-bot merged commit 3aaeb30 into nodejs:main Feb 3, 2023
@nodejs-github-bot
Copy link
Collaborator

Landed in 3aaeb30

@MylesBorins MylesBorins mentioned this pull request Feb 19, 2023
@codebytere codebytere deleted the allow-embedder-codegen-control branch April 2, 2023 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. embedding Issues and PRs related to embedding Node.js in another project. needs-ci PRs that need a full CI run. semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants