Repository navigation
fix(deps): take Electron 43.7.5 so detached webviews stop blanking browser tabs - #23586
Conversation
…owser tabs Electron 43.7.0 threw 'Invalid guestInstanceId' from <webview>'s disconnectedCallback for a loaded guest (electron/electron#53989), so a webview React removed and re-inserted kept a dead guest id: the tab went blank, reload did nothing, and the destroyed listener never fired. 43.7.4 (electron/electron#54097) returns early when the guest is gone. Raises the runtime floor test to 43.7.4 so a downgrade cannot re-ship it. Fixes STA-8757
There was a problem hiding this comment.
ℹ️ No critical issues — one minor doc inconsistency.
Reviewed changes
- Electron 43.7.0 → 43.7.5 (
package.json,pnpm-lock.yaml) — exact pin; lockfile changes only the Electron entries, and the newelectron@43.7.5integrity matches npm's publisheddist.integrity. - Release-age exemption dropped (
pnpm-workspace.yaml) —electron@43.7.0removed fromminimumReleaseAgeExclude; 43.7.5 (published 2026-09-23) clears the 3-day gate. - Runtime floor raised to 43.7.4 (
config/scripts/electron-runtime-floor.test.ts) — constant, doc comment, andit.eachrows updated so a downgrade can no longer ship the webview bug.
Verified against upstream: electron/electron#53989/#54097 and the 43.7.4 release notes match the described bug and fix, and the 43.7.5 notes are security backports only. The ready-to-show timing change (#54119) is handled — hidden Orca windows that could now emit it don't listen, and the revealed windows already have the fallback path.
ℹ️ Stated Electron floor in the glibc reference doc is below the enforced floor
docs/reference/linux-glibc-compatibility.md still says the floor is Electron ≥ 43.7.0 and that electron-runtime-floor.test.ts "fails the suite if the pin drops below the floor." The test floor is now 43.7.4, so a reader following that doc could pin 43.7.2 and expect it to pass. The doc is scoped to the glibc race, so the webview floor may belong elsewhere, but the pointer to the test is now inconsistent for 43.7.0–43.7.3.
Technical details
# Stale floor reference in linux-glibc-compatibility.md
## Affected sites
- `docs/reference/linux-glibc-compatibility.md:135` — section heading "Runtime floor: the `environ` race below glibc 2.41 (Electron ≥ 43.7.0)"
- `docs/reference/linux-glibc-compatibility.md:158` — "Do not downgrade Electron below 43.7.0 … `config/scripts/electron-runtime-floor.test.ts` fails the suite if the pin drops below the floor."
- `config/scripts/electron-runtime-floor.test.ts:15` — `MINIMUM_ELECTRON_VERSION = '43.7.4'` (the real floor; glibc 43.7.0 + webview 43.7.4)
## Required outcome
- The doc no longer implies 43.7.0–43.7.3 satisfy the enforced floor. Either note the second (webview `Invalid guestInstanceId`, fixed in 43.7.4) constraint and the combined floor, or soften the test-file sentence so it does not name a value below the constant.
## Open questions for the human
- Whether the platform-independent webview floor belongs in this glibc-specific doc or in a separate Electron-version reference.DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe minimum Electron runtime floor changes from 43.7.0 to 43.7.4. The tests reject versions below 43.7.4 and accept 43.7.4 and 43.7.5. The Electron devDependency changes to 43.7.5. The release-age exclusion for 43.7.0 is removed. Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to The Electron update includes the detached-webview fix, and the tested minimum and locked package version are consistent. No concrete merge-blocking risk is established. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The upgrade is intended to restore browser tabs after webviews are detached, and no introduced security issue was identified. The fix depends on Electron behavior that the changed version check does not itself verify. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |

ELI5
Orca's browser tabs are Electron
<webview>elements. The Electron version we ship (43.7.0) has a bug: if a loaded webview is taken off the page and put back, it comes back blank and can't be refreshed. This PR moves to Electron 43.7.5, which fixes it.What Changed
electron43.7.0 → 43.7.5 inpackage.json. The lockfile changes only the Electron entries.minimumReleaseAgeExcludeentry forelectron@43.7.0. 43.7.5 was published 2026-09-23, so it already clears the 3-day release-age gate.electron-runtime-floor.test.tsfrom 43.7.0 to 43.7.4, so a downgrade can't bring the bug back.What users see now: a browser tab that was showing a page goes blank, the refresh button does nothing, and only switching worktrees and back brings it back. This happens when React moves a webview in the page (moving a tab between groups, rebuilding the layout).
After: the tab keeps working when it's moved, refresh works, and Orca's in-place recovery for dead pages runs again.
Mechanism: in 43.7.0, removing a loaded webview from the page destroys its guest first. The element's
disconnectedCallbackthen asks the main process to detach that guest, and the main process throwsInvalid guestInstanceId(electron/electron#53989). The throw happens before the element resets its state, so it keeps the dead guest id and still believes it is attached. When it's put back, it creates no new guest.reload()fails on the dead id. The event listeners, including thedestroyedlistener Orca recovers from, have already been removed. The upstream fix (electron/electron#54097, released in 43.7.4) returns early when the guest is already gone.Why
The bug is in Electron itself, so the correct fix is the upstream patch release. Working around it in Orca (catching the throw, forcing a remount) would put a second recovery path next to the one we already have, and it would still leave a dead guest behind. The other changes in 43.7.1–43.7.5 are crash, memory and security fixes, and none of them changes an API. The one timing change is that
ready-to-shownow fires for some hidden windows on Windows and Linux. Where Orca listens for it, it already has a fallback for when it never fires.Linked Issue
Linear: STA-8757
Visual Proof
N/A: the change is a dependency version. The effect is shown by the before/after run of the upstream repro below.
Testing
Tested on macOS (arm64).
Upstream repro, before/after. A standalone Electron script loads a
<webview>in a hidden window, removes it, puts it back, then callsreload():{"removeError":"Uncaught Error: Invalid guestInstanceId: 2","timedOut":true,"pass":false}. Removing it throws and the re-inserted webview never loads.{"firstId":2,"secondId":3,"reloadOk":true,"pass":true}. Putting it back creates a fresh guest, andreload()works.pnpm install --frozen-lockfilepasses with the minimal lockfile.electron-runtime-floor.test.ts: 9/9.src/renderer/src/components/browser-pane: 115 files, 918 tests pass.Browser end-to-end specs (
tests/e2e/browser-*.spec.ts, electron-headless, on 43.7.5): 36 passed, 1 skipped, 1 failed. The failure isbrowser-pointer-input-dispatch"fast enough for real gestures". It fails the same way on 43.7.0: 5 of 5 runs on each version, about 8.3 ms per move and 16.6 ms per click. So it's a problem on this machine that already exists, not something the bump causes.Windows and Linux: covered by CI packaging. A patch release doesn't change the ABI native modules are built against.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Review
Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Security: 43.7.2, 43.7.3 and 43.7.5 bring Chromium, V8, Skia and PDFium security backports. Cross-platform: patch bump on all platforms, and the fix is in platform-independent JS. SSH, mobile and remote: no wire or protocol change. Backwards compatibility: same Electron major and Node version.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)