Skip to content

perf: push preload paths to Node.js renderers instead of a sync IPC at startup (43-x-y) - #53927

Merged
MarshallOfSound merged 1 commit into
43-x-yfrom
bp/43-x-y/preload-paths
Sep 15, 2026
Merged

MarshallOfSound merged 1 commit into
43-x-yfrom
bp/43-x-y/preload-paths

Conversation

@MarshallOfSound

Copy link
Copy Markdown
Member

Backport of #53860

See that PR for details. 43-x-y does not have ElectronBrowserClient::IsRendererProcessSandboxed(), which the new renderer_startup_data::IsFrameInSandboxedRenderer() calls, so this also carries that small helper (a per-process record of whether the renderer was launched with --no-sandbox) from #52472.

Notes: none

…t startup (#53860)

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.

(cherry picked from commit a36f9cd)

43-x-y does not have ElectronBrowserClient::IsRendererProcessSandboxed(),
which renderer_startup_data::IsFrameInSandboxedRenderer() uses, so this
also carries that small helper (record whether each renderer process was
launched with --no-sandbox) from #52472.
@MarshallOfSound
MarshallOfSound requested a review from a team as a code owner September 14, 2026 21:01
@MarshallOfSound MarshallOfSound added backport This is a backport PR semver/patch backwards-compatible bug fixes 43-x-y labels Sep 14, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) September 14, 2026 23:44
@MarshallOfSound
MarshallOfSound merged commit 3501526 into 43-x-y Sep 15, 2026
96 checks passed
@MarshallOfSound
MarshallOfSound deleted the bp/43-x-y/preload-paths branch September 15, 2026 19:55
@release-clerk

release-clerk Bot commented Sep 15, 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

43-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.

3 participants