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

feat: set app.enableRendererProcessReuse to true by default #22336

Merged
merged 10 commits into from Feb 25, 2020

Conversation

MarshallOfSound
Copy link
Member

As per the timeline in #18397 we should flip this for Electron 9.

BREAKING CHANGE

Notes: Changed the default value of app.allowRendererProcessReuse to true, this will prevent loading of non-context-aware native modules in renderer processes. See #18397 for more information on this change.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Feb 21, 2020
@MarshallOfSound
Copy link
Member Author

There are two spec fixes in this PR as well:

  • The window.open fix is because the behavior of nodeIntegration in child windows changes when allowRendererProcessReuse is enabled.
  • The remote fix is because the webContents is not marked as destroyed (as it is reused on reload) which makes the "function does not exist" error async as it has to bounce through the renderer to determine that the function does not exist

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Feb 22, 2020
@MarshallOfSound MarshallOfSound merged commit 7b7def7 into master Feb 25, 2020
@release-clerk
Copy link

release-clerk bot commented Feb 25, 2020

Release Notes Persisted

Changed the default value of app.allowRendererProcessReuse to true, this will prevent loading of non-context-aware native modules in renderer processes. See #18397 for more information on this change.

@MarshallOfSound MarshallOfSound deleted the enable-renderer-process-reuse branch February 25, 2020 02:11
@trop
Copy link
Contributor

trop bot commented Feb 25, 2020

I was unable to backport this PR to "9-x-y" cleanly;
you will need to perform this backport manually.

MarshallOfSound added a commit that referenced this pull request Feb 26, 2020
* feat: set app.enableRendererProcessReuse to true by default

* chore: add context aware info to breaking changes doc

* spec: fix nodeIntegration in child windows test for rendererprocessreuse

* spec: fix remote listeners in destroyed renderers spec as the error is now async

* Update api-browser-window-spec.ts

* chore: deprecate affinity

* chore: fix docs

* spec: handle tests crashing without an exist code

* spec: update tests for new rendererprocessreuse default

* spec: with renderer process re-use we get to destroy less views
@trop
Copy link
Contributor

trop bot commented Feb 26, 2020

@MarshallOfSound has manually backported this PR to "9-x-y", please check out #22401

@trop trop bot added the in-flight/9-x-y label Feb 26, 2020
MarshallOfSound added a commit that referenced this pull request Feb 27, 2020
…22401)

* feat: set app.enableRendererProcessReuse to true by default

* chore: add context aware info to breaking changes doc

* spec: fix nodeIntegration in child windows test for rendererprocessreuse

* spec: fix remote listeners in destroyed renderers spec as the error is now async

* Update api-browser-window-spec.ts

* chore: deprecate affinity

* chore: fix docs

* spec: handle tests crashing without an exist code

* spec: update tests for new rendererprocessreuse default

* spec: with renderer process re-use we get to destroy less views
@sofianguy sofianguy added this to Fixed in 9.0.0-beta.4 in 9-x-y Mar 6, 2020
nornagon added a commit to electron/remote that referenced this pull request Jun 17, 2020
nornagon added a commit to electron/remote that referenced this pull request Jun 17, 2020
nornagon added a commit to electron/remote that referenced this pull request Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
9-x-y
Fixed in 9.0.0-beta.4
Development

Successfully merging this pull request may close these issues.

None yet

3 participants