Repository navigation
Conversation
7e8d547 to
3eb76b2
Compare
3eb76b2 to
2ac237f
Compare
2ac237f to
6536b1a
Compare
6536b1a to
40b79ec
Compare
0bcd5b4 to
974b150
Compare
974b150 to
faddf1e
Compare
faddf1e to
5e6ff39
Compare
bd06fe4 to
c225947
Compare
bd77c69 to
8f92fb7
Compare
8f92fb7 to
fea8290
Compare
|
Closing because this exact-page retirement barrier stage is already implemented on main (
Shared-partition retirement, delayed/failed closure, failed retirement startup, wrong authority, duplicate/stale acknowledgment, and tuple reuse are retained; newer lifecycle modules compose these checks rather than reintroducing an independent cleanup path. 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 #14517:
Causal evidence
The parent had no release handshake: logical authority could disappear while the loaded guest, requests, and route-policy teardown proceeded independently. The first release candidate also treated an exception from Electron destroyed inspection as destroyed, which fresh security review proved could clear policy under an unknown/live guest. The final deterministic oracle holds cleanup until the explicit destroyed event, including delayed close, retirement-start failure, inspection failure, two pages sharing one partition, stale acknowledgement replay, and capacity pressure.
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 barrier is deliberately fail-closed but not activation-ready. A close that never reaches destroyed or a retirement that cannot start reserves policy and capacity indefinitely. WebContents destruction also does not prove service workers, downloads, active requests, connections, storage, or network-service state have settled. Process/document crash fencing, bounded recovery, real Electron ordering/traffic capture, and physical macOS/Linux/Windows coverage remain required.
Linear: https://linear.app/stably/issue/STA-4150/refactor-remote-browser-to-client-hosted-electron-webviews
Stack: #14471
Parent: #14517