electron/shell/renderer
trop[bot] 926da6030b
fix: add MicrotasksScope for worker exit emit in ContextWillDestroy (#51349)
a39108c5a4 (#47244) replaced gin_helper::EmitEvent with a direct
`v8::Function::Call()` in `WebWorkerObserver::ContextWillDestroy`
to avoid re-entering the microtask checkpoint during worker teardown.

V8 `DCHECK()`s that a policy is set. Under the old code path, this
happened with a node::CallbackScope. Under the new code path, it's
possible for a policy to not be set, causing that `DCHECK()` to fail.

This PR copies a39108c5a4's changes in `ShareEnvironmentWithContext()`:
it explicitly adds a `kDoNotRunMicrotasks` scope.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2026-04-27 21:07:43 -05:00
..
api fix: use CreateDataProperty when copying objects across contextBridge (#51085) 2026-04-16 10:57:32 -07:00
extensions refactor: remove unused system header includes (#46015) 2025-03-14 10:59:15 -05:00
printing chore: bump chromium to 134.0.6988.0 (main) (#45334) 2025-02-06 15:30:54 -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 (40-x-y) (#48767) 2025-11-05 09:23:03 -05:00
electron_renderer_client.cc fix: nodeIntegrationInWorker not working in AudioWorklet (#51004) 2026-04-21 16:16:24 +02: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 (40-x-y) (#48786) 2025-11-07 17:40:25 -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 (40-x-y) (#48786) 2025-11-07 17:40:25 -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 feat: make Chrome extensions work on custom protocols (#50588) 2026-04-02 20:10:04 -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 fix: add MicrotasksScope for worker exit emit in ContextWillDestroy (#51349) 2026-04-27 21:07:43 -05:00
web_worker_observer.h fix: nodeIntegrationInWorker not working in AudioWorklet (#51004) 2026-04-21 16:16:24 +02:00