Repository navigation
Conversation
5683c49 to
abce9ee
Compare
abce9ee to
0b4ec10
Compare
6becc5c to
4178cc8
Compare
4178cc8 to
c10e1b9
Compare
c10e1b9 to
a8308e7
Compare
18fc471 to
de8e63e
Compare
de8e63e to
8922360
Compare
8922360 to
03d798b
Compare
03d798b to
855fe94
Compare
855fe94 to
064458c
Compare
064458c to
cef85c9
Compare
|
Closing because this renderer-owned prepared-page authority stage is already implemented on main ( Main retains the exact renderer owner in the prepared-page ledger, rejects sibling claims/owner transfer, retires prepared-but-unregistered pages, and fences asynchronous preparation by renderer epoch with a final liveness assertion. The renderer prepare-fence module is byte-identical to this proposal. Pending setup remains bounded to the page budget; live sibling waiters can finish after stale owners are fenced; snapshot-first retirement continues across partitions even if policy cleanup fails. All 11 introduced test cases remain in the current suites. Validation: the six current partition/session/WebContents/main-window suites passed 106 tests with |
Summary
Adds the next inert STA-4150 authority layer on top of #14519:
Causal evidence
The parent keyed prepared authority only by partition, page ID, and page-host generation. Deterministic tests were red because a sibling renderer received the same authority and renderer loss had no way to retire a prepared-but-unregistered page. Fresh review then reproduced three further failures: policy-cleanup exceptions aborted later partition retirement, an owner could die while proxy setup was pending and still receive authority afterward, and an already-live prepare could resolve successfully after its authority had been retired. The candidate makes the same oracles green through exact owner records, snapshot-first retirement, bounded pending admission, renderer epochs, and a final async-boundary liveness check.
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. The future caller must derive renderer ownership and lifetime page generation from trusted main/runtime state; real Electron crash/reload and attach ordering remain unproven; worker, request, download, connection, storage, and network-service settlement remain outside this barrier; and never-settling setup or guest destruction can retain bounded capacity.
ELI5
The future local browser tab now gets a wristband tied to the exact Orca window that owns it. If that window dies while the tab is being prepared, the preparation cannot later wake up and claim success; tabs belonging to other live windows are left alone.
Visual Proof
N/A — this is an inert main-process authority 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: #14519