Skip to content

fix: emit render-process-gone outside the process-death notification#51917

Merged
jkleinsc merged 3 commits into
41-x-yfrom
trop/41-x-y-bp-fix-emit-render-process-gone-outside-the-process-death-notification-1780939219958
Jun 9, 2026
Merged

fix: emit render-process-gone outside the process-death notification#51917
jkleinsc merged 3 commits into
41-x-yfrom
trop/41-x-y-bp-fix-emit-render-process-gone-outside-the-process-death-notification-1780939219958

Conversation

@trop

@trop trop Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Backport of #51900

See that PR for details.

Notes: Fixed a browser process crash when calling webContents.reload() or navigating synchronously from the render-process-gone event; the event is now emitted after the renderer's teardown notification has completed.

trop Bot and others added 3 commits June 8, 2026 17:20
…forms

Extends Chromium's Android/ChromeOS re-register carve-out in
RendererStartupHelper::OnRenderProcessLaunched() to all platforms. The
CHECK it replaces fails when a RenderProcessHost is re-initialized from
inside the process-death notification - for example when an app reloads
a WebContents synchronously from the 'render-process-gone' event - and
brings down the browser process. Adds a regression spec that crashes a
renderer and reloads it synchronously from the handler.

Refs: crrev.com/c/7330559, crrev.com/c/7862000, crbug.com/512916518

Co-authored-by: VerteDinde <vertedinde@electronjs.org>
Replaces the renderer_startup_helper.cc chromium patch from the previous
commit: instead of relaxing the upstream CHECK, defer the
'render-process-gone' emit by one task so app code can no longer
re-enter RenderProcessHostImpl::Init() from inside the process-death
observer loop. Addresses review feedback that the CHECK should stay
intact.

Co-authored-by: VerteDinde <vertedinde@electronjs.org>
Co-authored-by: VerteDinde <vertedinde@electronjs.org>
@trop trop Bot requested a review from VerteDinde June 8, 2026 17:20
@trop trop Bot added 41-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Jun 8, 2026
@jkleinsc jkleinsc merged commit 9a0a00c into 41-x-y Jun 9, 2026
123 of 125 checks passed
@release-clerk

release-clerk Bot commented Jun 9, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed a browser process crash when calling webContents.reload() or navigating synchronously from the render-process-gone event; the event is now emitted after the renderer's teardown notification has completed.

@trop trop Bot deleted the trop/41-x-y-bp-fix-emit-render-process-gone-outside-the-process-death-notification-1780939219958 branch June 9, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

41-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant