Skip to content

perf: push preload paths to Node.js renderers instead of a sync IPC at startup - #53916

Merged
MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-perf-push-preload-paths-to-node-js-renderers-instead-of-a-sync-ipc-at-startup-1789409545639
Sep 14, 2026
Merged

MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-perf-push-preload-paths-to-node-js-renderers-instead-of-a-sync-ipc-at-startup-1789409545639

Conversation

@trop

@trop trop Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Backport of #53860

See that PR for details.

Notes: none

…t startup

Sandboxed frames already receive their preload list from the browser over the
ElectronFrameStartup channel ahead of CommitNavigation. Frames with Node.js
integration still blocked on a synchronous BROWSER_NONSANDBOX_LOAD round trip
into browser-process JS from renderer init to learn the same thing.

The browser now pushes RendererStartupData to those frames too, with only the
preload paths filled in (no file contents, environment or code cache, since
Node loads the files itself): at frame creation, so a script context created
on the initial empty document still sees it, and again ahead of each
committed navigation. ElectronRendererClient hands the paths to renderer
init and the sync IPC and its handler are removed.

Co-authored-by: Sam Attard <[email protected]>
@trop
trop Bot requested a review from a team as a code owner September 14, 2026 18:12
@trop
trop Bot requested a review from MarshallOfSound September 14, 2026 18:12
@trop trop Bot added 45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Sep 14, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 14, 2026 18:14
@MarshallOfSound
MarshallOfSound merged commit fd314b4 into 45-x-y Sep 14, 2026
96 checks passed
@MarshallOfSound
MarshallOfSound deleted the trop/45-x-y-bp-perf-push-preload-paths-to-node-js-renderers-instead-of-a-sync-ipc-at-startup-1789409545639 branch September 14, 2026 19:23
@release-clerk

release-clerk Bot commented Sep 14, 2026

Copy link
Copy Markdown

No Release Notes

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