Skip to content

fix: crash when a node-integrated iframe is removed before its loop starts - #53883

Merged
MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-crash-when-a-node-integrated-iframe-is-removed-before-its-loop-starts-1789282358877
Sep 13, 2026
Merged

MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-crash-when-a-node-integrated-iframe-is-removed-before-its-loop-starts-1789282358877

Conversation

@trop

@trop trop Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Backport of #53833

See that PR for details.

Notes: Fixed a renderer crash when an iframe was removed right after loading with nodeIntegrationInSubFrames enabled and sandbox disabled, e.g. on pages that embed Meta Pixel.

…tarts

A nodeIntegrationInSubFrames frame's NodeBindings only initializes its
dummy_uv_handle_ from the task that first runs the frame's loop. A frame
removed before that task ran destroyed a uv_async_t that never went through
uv_async_init(), so uv_close() ran on uninitialized memory.

UvHandle now value-initializes its handle, and reset() frees one that was
never initialized instead of closing it.

Fixes #53789.

Co-authored-by: Samuel Attard <[email protected]>
@trop
trop Bot requested a review from MarshallOfSound September 13, 2026 06:52
@trop trop Bot added 45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Sep 13, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 13, 2026 06:53
@MarshallOfSound
MarshallOfSound merged commit 0640fa4 into 45-x-y Sep 13, 2026
95 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/45-x-y-bp-fix-crash-when-a-node-integrated-iframe-is-removed-before-its-loop-starts-1789282358877 branch September 13, 2026 07:51
@release-clerk

release-clerk Bot commented Sep 13, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed a renderer crash when an iframe was removed right after loading with nodeIntegrationInSubFrames enabled and sandbox disabled, e.g. on pages that embed Meta Pixel.

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

Labels

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

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant