electron/shell/renderer
trop[bot] a14f661c58
fix: read nodeIntegrationInWorker from per-frame WebPreferences (#50134)
* fix: read nodeIntegrationInWorker from per-frame WebPreferences

Previously the renderer checked a process-wide command-line switch to
decide whether to create a Node.js environment for dedicated workers.
When a renderer process hosted multiple WebContents with different
nodeIntegrationInWorker values (e.g. via window.open with overridden
webPreferences in setWindowOpenHandler), all workers in the process
used whichever value the first WebContents set on the command line.

Instead, plumb the flag through blink's WorkerSettings at worker
creation time, copying it from the initiating frame's WebPreferences.
The check on the worker thread then reads the per-worker value. Nested
workers inherit the flag from their parent worker via
WorkerSettings::Copy.

The --node-integration-in-worker command-line switch is removed as it
is no longer consumed.

Co-authored-by: Samuel Attard <sattard@anthropic.com>

* chore: update patches

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Samuel Attard <sattard@anthropic.com>
Co-authored-by: John Kleinschmidt <kleinschmidtorama@gmail.com>
2026-03-09 23:26:10 +00:00
..
api fix: InspectorFrontendHost override in embedded windows (#50137) 2026-03-09 10:00:28 -05:00
extensions fix: clang-tidy warnings, pt. 1 (#49083) 2026-01-09 22:57:38 -08:00
printing chore: bump chromium to 146.0.7666.0 (41-x-y) (#49543) 2026-02-17 16:19:16 -05:00
resources/mac fix: disable MallocNanoZone on mac (#33704) 2022-04-28 10:28:27 -04:00
browser_exposed_renderer_interfaces.cc chore: remove more unused #include calls (#43000) 2024-07-25 11:25:45 +02:00
browser_exposed_renderer_interfaces.h chore: add ELECTRON_ prefix to C++ include guards (#31925) 2021-11-22 16:34:31 +09:00
content_settings_observer.cc feat: route deprecated sync clipboard read through permission checks (#45377) 2025-02-05 15:13:29 +09:00
content_settings_observer.h feat: route deprecated sync clipboard read through permission checks (#45377) 2025-02-05 15:13:29 +09:00
electron_api_service_impl.cc chore: bump chromium to 141.0.7390.7 (main) (#48212) 2025-09-08 12:57:15 +02:00
electron_api_service_impl.h feat: route deprecated sync clipboard read through permission checks (#45377) 2025-02-05 15:13:29 +09:00
electron_autofill_agent.cc chore: bump chromium to 134.0.6968.0 (main) (#45172) 2025-01-23 23:07:43 -05:00
electron_autofill_agent.h chore: bump chromium to 134.0.6968.0 (main) (#45172) 2025-01-23 23:07:43 -05:00
electron_ipc_native.cc perf: avoid a little extra work in InvokeIpcCallback() (#48456) 2025-10-04 21:52:53 -07:00
electron_ipc_native.h refactor: avoid deprecated v8::Context::GetIsolate() calls (pt 2) (#47879) 2025-07-28 10:22:27 -05:00
electron_render_frame_observer.cc chore: bump chromium to 143.0.7485.0 (main) (#48618) 2025-10-23 08:30:29 -05:00
electron_render_frame_observer.h chore: bump chromium to 144.0.7506.0 (main) (#48744) 2025-11-03 21:26:16 -08:00
electron_renderer_client.cc fix: read nodeIntegrationInWorker from per-frame WebPreferences (#50134) 2026-03-09 23:26:10 +00:00
electron_renderer_client.h refactor: avoid deprecated v8::Context::GetIsolate() calls pt 3 context get isolate pt 3 (#47901) 2025-07-30 09:14:38 -05:00
electron_sandboxed_renderer_client.cc chore: bump chromium to 141.0.7390.7 (main) (#48212) 2025-09-08 12:57:15 +02:00
electron_sandboxed_renderer_client.h chore: bump chromium to 141.0.7390.7 (main) (#48212) 2025-09-08 12:57:15 +02:00
electron_smooth_round_rect.cc chore: bump chromium to 144.0.7512.1 (main) (#48768) 2025-11-07 10:13:45 -05:00
electron_smooth_round_rect.h feat: Corner Smoothing CSS rule (Reland) (#46278) 2025-03-31 11:22:23 -05:00
preload_realm_context.cc chore: bump chromium to 144.0.7512.1 (main) (#48768) 2025-11-07 10:13:45 -05:00
preload_realm_context.h chore: bump chromium to 141.0.7390.7 (main) (#48212) 2025-09-08 12:57:15 +02:00
preload_utils.cc refactor: remove gin_helper::Arguments (#48374) 2025-10-03 14:10:29 -05:00
preload_utils.h refactor: remove gin_helper::Arguments (#48374) 2025-10-03 14:10:29 -05:00
renderer_client_base.cc chore: bump chromium to 142.0.7417.0 (main) (#48275) 2025-09-22 20:16:27 -07:00
renderer_client_base.h chore: bump chromium to 141.0.7390.7 (main) (#48212) 2025-09-08 12:57:15 +02:00
service_worker_data.cc refactor: avoid deprecated v8::Context::GetIsolate() calls pt 3 context get isolate pt 3 (#47901) 2025-07-30 09:14:38 -05:00
service_worker_data.h refactor: avoid deprecated v8::Context::GetIsolate() calls pt 3 context get isolate pt 3 (#47901) 2025-07-30 09:14:38 -05:00
web_worker_observer.cc refactor: avoid deprecated v8::Context::GetIsolate() calls (pt 1) (#47760) 2025-07-21 16:34:38 +02:00
web_worker_observer.h chore: more iwyu (#43063) 2024-07-29 12:42:57 -05:00