mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
* fix: make child windows not crash when ipc messages are received This also adds a path forward for apps using child windows with nodeIntegration to migrate into a non-leaky way of doing it. 1. Ensure that if ipcNative is missing we don't crash rather log that it is missing 2. Add a hidden option `--enable-node-leakage-in-renderers` (temporary measure) to allow app devs to opt in to leaking node in child windows 3. Bypasses the Opener() check if renderer process reuse is enabled (which would prevent the leak anyway) So the path forward is: it no longer crashes --> folks use the hidden option --> folks opt in to renderer process reuse. * Apply suggestions from code review Co-Authored-By: Jeremy Apthorp <jeremya@chromium.org> * Update shell/renderer/atom_renderer_client.cc Co-Authored-By: Jeremy Apthorp <jeremya@chromium.org>
6.1 KiB
6.1 KiB