Before submitting
Area
apps/desktop
Steps to reproduce
- Open a new preview tab on any page, for example
https://example.com, through preview automation (preview_open).
- Read the console with
preview_snapshot.
- Repeat with new tabs; the errors appear on some of them.
Expected behavior
consoleEntries holds only the page's own messages.
Actual behavior
Some new tabs log the two errors below, and preview_snapshot returns them in consoleEntries. The page itself loads and works. For agents this is noise: an agent checking a page reads consoleEntries and has to work out that these errors are not the page's, which is misleading when the task is to find console errors.
Cause and fix
The errors come from Electron, not from the page: electron/electron#54149. When a DevTools protocol client attaches to a sandboxed frame before its first navigation finishes, the sandbox bundle runs on the initial empty document, which has no startupData. Preview automation is such a client, so the race depends on timing.
Fixed upstream in electron/electron#54155 and released in v44.4.4 ("Fixed a spurious sandboxed_renderer.bundle.js script failed to run console error when DevTools attached to a sandboxed frame before its first navigation"); backports are in v43.7.4 and v42.11.7. Bumping Electron to 44.4.5, the latest 44.x patch, should remove the errors.
Impact
Cosmetic issue
Version or commit
main @ de251fc (electron: 44.4.2 in apps/desktop/package.json); installed 0.0.43-nightly.20260926.2282
Environment
Desktop app on Linux (NixOS, Wayland, niri), Electron 44.4.2
Logs or stack traces
Electron sandboxed_renderer.bundle.js script failed to run
TypeError: Cannot destructure property 'preloadScripts' of 'binding.startupData' as it is null.
at node:electron/js2c/sandbox_bundle:2:124925
at ___electron_webpack_init__ (node:electron/js2c/sandbox_bundle:2:125864)
Screenshots, recordings, or supporting files
No response
Workaround
Ignore these two console entries.
Before submitting
Area
apps/desktop
Steps to reproduce
https://example.com, through preview automation (preview_open).preview_snapshot.Expected behavior
consoleEntriesholds only the page's own messages.Actual behavior
Some new tabs log the two errors below, and
preview_snapshotreturns them inconsoleEntries. The page itself loads and works. For agents this is noise: an agent checking a page readsconsoleEntriesand has to work out that these errors are not the page's, which is misleading when the task is to find console errors.Cause and fix
The errors come from Electron, not from the page: electron/electron#54149. When a DevTools protocol client attaches to a sandboxed frame before its first navigation finishes, the sandbox bundle runs on the initial empty document, which has no
startupData. Preview automation is such a client, so the race depends on timing.Fixed upstream in electron/electron#54155 and released in v44.4.4 ("Fixed a spurious
sandboxed_renderer.bundle.jsscript failed to run console error when DevTools attached to a sandboxed frame before its first navigation"); backports are in v43.7.4 and v42.11.7. Bumping Electron to 44.4.5, the latest 44.x patch, should remove the errors.Impact
Cosmetic issue
Version or commit
main @ de251fc (
electron: 44.4.2inapps/desktop/package.json); installed 0.0.43-nightly.20260926.2282Environment
Desktop app on Linux (NixOS, Wayland, niri), Electron 44.4.2
Logs or stack traces
Screenshots, recordings, or supporting files
No response
Workaround
Ignore these two console entries.