Skip to content

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

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

fix: emit render-process-gone outside the process-death notification#51916
jkleinsc merged 3 commits into
42-x-yfrom
trop/42-x-y-bp-fix-emit-render-process-gone-outside-the-process-death-notification-1780939218304

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 42-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Jun 8, 2026
@jkleinsc jkleinsc merged commit ef43f3c into 42-x-y Jun 8, 2026
77 checks passed
@jkleinsc jkleinsc deleted the trop/42-x-y-bp-fix-emit-render-process-gone-outside-the-process-death-notification-1780939218304 branch June 8, 2026 20:06
@release-clerk

release-clerk Bot commented Jun 8, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

42-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