Skip to content

feat(truapi-debugger): in-app embed for host-mounted panels - #539

Draft
decrypto21 wants to merge 1 commit into
nidish/debugger-4-host-dialfrom
nidish/debugger-5-in-app
Draft

feat(truapi-debugger): in-app embed for host-mounted panels#539
decrypto21 wants to merge 1 commit into
nidish/debugger-4-host-dialfrom
nidish/debugger-5-in-app

Conversation

@decrypto21

Copy link
Copy Markdown
Contributor

Stacked on the host-dial PR. Design doc: #315, §8(B).

The in-app embed: the same inspector mounted inside a host, with no server and no dial-out. Three files.

What

The tap tees each envelope across the realm boundary to a host-owned frame, which feeds the engine and decodes at the point of display. Frames never leave the app, so each tab is its own tenant.

This mounts the same chrome as the standalone — same operation list, badges, filters, per-frame drill-down — because both mount one renderer over one engine. Chrome may be reduced where a host has no room; what must not differ is the answer.

Confinement

The tee pins its target to a verified host-owned frame in both directions: it neither posts to nor accepts a mount from an untrusted window, and the product sandbox realm is excluded on both sides. postMessage targets an exact origin read from ancestorOrigins, and refuses to post at all when that is unavailable rather than falling back to a wildcard.

Verification

tsc -b clean, 182 tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant