Repository navigation
Conversation
fd133c1 to
f56fc16
Compare
f56fc16 to
247697e
Compare
247697e to
141d628
Compare
141d628 to
5fb180a
Compare
5fb180a to
099a6a6
Compare
099a6a6 to
5c24dab
Compare
8cfdf16 to
daadc84
Compare
daadc84 to
ccb5eb3
Compare
ccb5eb3 to
c47d341
Compare
c47d341 to
dbace0f
Compare
dbace0f to
dd5158f
Compare
|
Closing because this guest and owning-renderer process-loss retirement stage is already implemented on main ( The route guest lifecycle now routes Opaque authority matching, synchronous navigation revocation, fail-closed retirement exceptions, and destroyed-acknowledgment policy/capacity retention continue through the shared barrier. Validation: the six current partition/session/WebContents/main-window suites passed 106 tests with |
Summary
Adds the next inert STA-4150 lifecycle layer on top of #14518:
Causal evidence
The parent safely retired pages only when its logical owner explicitly released them. Deterministic tests were red because BrowserRouteSessionRegistry had no exact lifecycle retirement entry point, guest render-process-gone did not end logical authority or close the guest, and main renderer process loss did not retire its route guests. The candidate makes those same tests green through the existing opaque-authority barrier rather than adding a parallel crash cleanup path.
Validation
Compatibility and rollout
No exchanged field, RPC, capability advertisement, persisted schema, renderer IPC, or production page-preparation/registration/grant caller changes in this PR. Existing local/server/offscreen browsers, old clients, SSH/WSL routes, folder workspaces, git worktrees, and headed/headless/browserless placement retain current behavior.
This remains deliberately inert and is not activation-ready. Prepared-but-unregistered pages do not yet have trusted renderer ownership. Real Electron crash/reload and ordinary process-swap ordering are unproven; service workers, downloads, active requests, connections, storage, and network-service settlement remain outside this barrier; and a close or retirement that never settles reserves policy and capacity indefinitely.
ELI5
If the future client-hosted browser tab or the Orca window containing it crashes, this makes the exact tab lose its permission immediately and enter the same locked cleanup lane as an ordinary close. It does not turn the feature on.
Visual Proof
N/A — this is an inert main-process lifecycle contract with no rendered UI or production caller.
Linear: https://linear.app/stably/issue/STA-4150/refactor-remote-browser-to-client-hosted-electron-webviews
Stack: #14471
Parent: #14518