Repository navigation
Conversation
The frame tree per tab in the kernel's state, ChildFrame (20) and ChildGone (21), a GPU process per frame, composition clipped to the parent's rect, input by hit rectangle, same-origin iframes in the parent's renderer; each theorem restated per frame, three new ones, the noninterference relation's two declassifications; hostile cases, the cost against 5.18, and open questions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on
claude/ipc-surfaces-cfd15e(item 5.18). Base this PR on that branch,and merge it after.
What
Item 5.24 of
docs/phases/phase-5.md: a design note, not code, as 5.0(i)'s I1recommends. It is one new section at the end of the file, "Appendix: nested
browsing contexts (item 5.24)". The file has no contents list, so nothing else was
added. The Status table, the 5.0 decisions and every item's text are untouched. No
code changes and no theorem is claimed.
The note is written against the kernel as 5.18 left it (
spec.rs,statements.rs,the README on
claude/ipc-surfaces-cfd15e) and against the GPU process's sandboxfrom 5.21a.
Decided in the note
same-origin one stays inside the parent's renderer, and the kernel never sees
it until it navigates cross-origin.
Renderergainsparent,slot,rectand
depth;Stategainsfocus.renderers_wfbecomes a tree invariant:one top-level renderer per tab, no cycles, a unique
(parent, slot), and thelimits.
ChildFrame(tag 20: slot, url, x, y, width, height) andChildGone(tag 21: slot). Neither collides with today's tags (1–11, 14, 15,18, 19, 101–114). No kernel-to-renderer message is added, and the parent is
told nothing about its child.
its rect's size; its position is never sent to it.
PaintFrame(no URL or title),PlaceandUnplace. The host keeps one clipped surface per frame (aCALayerwithmasksToBounds, an X11 child window, or a DirectComposition visual). The childis drawn above its parent.
translated into its coordinates. A click moves keyboard focus.
target=_topis dropped.cookie noninterference theorem with no third-party declassification.
parent learns nothing.
Theorems, stated to become
ensurestheorem_paint_fits_viewport: a child's frame fits its rect;theorem_paint_only_own_tab;theorem_viewport_only_to_own_tab;theorem_input_only_to_hit_frame, which replaces the own-tab input theorem.theorem_frame_only_in_its_rect;theorem_parent_gets_nothing_from_child;theorem_kill_contained.theorem_address_bar_integrity, sincePaintstays the top-level frame's.
Placeattributed to the parent;FrameDeclorFrameRemoved, and the user's input delivered to a frame becomesInputTo;Cost
Compared with 5.18 on that branch:
clazel-ipcand +294 in tests, 20 certified mutations and five new theorems.mutations, because the changed invariant reaches every lemma that assumes one
renderer per tab.
same-origin documents in the renderer, and a GPU process per frame.
Open questions for the maintainer
These are listed separately in the appendix:
frame-ancestors.loadevent.target=_topwith user activation.Checks
cargo xtask check:STATIC CHECKS PASSED. No code changed. CI has not run.cargo xtask verifywas not run, as instructed.🤖 Generated with Claude Code