Repository navigation
refactor(mobile): move the bridge connection snapshot into its own module - #36818
Conversation
8242c40 to
393203a
Compare
f9bcebc to
e04caaf
Compare
393203a to
3aee9b4
Compare
e04caaf to
49524a4
Compare
3aee9b4 to
605cd7f
Compare
49524a4 to
b09e382
Compare
605cd7f to
f630c80
Compare
b09e382 to
1e16e1f
Compare
1e16e1f to
038a239
Compare
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
038a239 to
f2379da
Compare
…dule The connection snapshot schema, the shell's snapshot builder and the page's not-ready guard move to bridge-connection-snapshot.ts and BridgeConnectionCache.require(). No behavior change: the envelope re-exports the schema, so every frame parses and serializes as before. Prepares the next change, which adds connection path fields to the snapshot, without pushing the bridge modules over the size cap.
f2379da to
71a9680
Compare
ELI5
Moves one piece of shared code into its own file so the next PR has room to grow. Nothing changes for users.
What Changed
bridge-envelope.tsandbridge-host.tsintobridge/bridge-connection-snapshot.ts.BridgeConnectionCache.require().bridge-envelope.tsre-exports the schema, so every import and every frame on the wire is unchanged.Why
The next PR adds connection-path fields to this snapshot. Without this move, three bridge modules go over the 300-line cap. It's split out as a pure move so the behavior PR is reviewable on its own.
Linked Issue
N/A (internal).
Visual Proof
N/A: no behavior change.
Testing
Mobile
src/mobile-web-shellsuite passes unchanged (1401 tests); mobiletypecheckpasses.I manually tested these changes locally
Automated tests added/updated, or explained why not below
No tests added: it's a pure move covered by the existing bridge suites.
Stack 4/5. Base: compressed frames.