Repository navigation
fix(extension): check card frames like login frames, fill shadow-DOM and Dutch addresses, and rest the idle corner offer - #365
Merged
Conversation
kitlangton
force-pushed
the
ext-sandbox-hotpaths
branch
from
December 2, 2026 09:52
c2a6bfa to
bff60fa
Compare
kitlangton
marked this pull request as ready for review
December 2, 2026 10:03
…nd identity frames as login frames are Forms' placement, approval and re-check passed no policy, so a sandboxed frame element got card and identity values and no visibility reading was taken. They now pass LOGIN_FRAME_PLACE and LOGIN_FRAME. Every policy now refuses a sandboxed frame element, the login popup fill's included (UNSANDBOXED_FRAME), and `how` is required.
…a form The in-place check, the below-the-fold reach check and the scroll keeper stopped at the shadow root, unlike the scan, so such fields were skipped at fill, or never scrolled to.
An autofocused field got a second full scan right after the page scan (refreshMenu), and every focus scanned before the cheap checks that keep any menu shut (no gesture, a query in flight, dismissed, learning).
…hit-testing every frame A corner save or sign-in offer rewrote the host's style and hit-tested it 60 times a second for its whole life. The style is now written only when it would change or the page changed it (a write the page makes inside ours forces a rewrite next frame), and once the surface has landed with nothing moving, it hit-tests itself every 250 ms. Its frame is still asked for every time, so it stays ahead of any frame the page asks for later.
kitlangton
force-pushed
the
ext-sandbox-hotpaths
branch
from
December 2, 2026 21:12
bff60fa to
33b90dd
Compare
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.
Card and address fills now skip sandboxed frames, fill fields inside web components, and read Dutch postcodes right. The corner save and sign-in offers also stop rewriting their style and hit-testing themselves 60 times a second.
Four small fill bugs and two hot paths, all in the extension. Login autofill is unchanged.
❌ Before
<iframe sandbox>, and no visibility reading was taken for the frame. Login frames already refused both.<form>were found by the scan, then skipped at fill ("The page changed").Prinsengracht 1, 1012 AB Amsterdamsplit into postcode1012and cityAB Amsterdam.✅ After
sandbox, so they still fill.1012 AB, cityAmsterdam. US state codes and Australian addresses parse as before.📊 Proof
<iframe sandbox><form>1012 AB AmsterdamEach new test fails without its change and passes with it; the full unit suite passes (1,047).
👀 Read:
content/inline.tsposition(). A resting corner offer skips its style write and throttles its hit test, but never stops asking for frames: an earlier version that let it sleep between checks lost its place ahead of a page's own frames and failed the security suite's "late restyle" cases. A write the page makes during ours forces a rewrite every frame, as before. The other fixes are one or two lines each. Overlaps #364 (bg/forms.ts,content/forms.ts,content/inline.ts): if #364 merges first, this should rebase onto it.🔍 Found in a code audit · no user reports · frame counts from the unit test's requestAnimationFrame counter in happy-dom, not measured in a browser
Checks run
bun run typecheck(extension): passbun test(extension): 1047 pass, 0 failbun corpus/score.ts --gate: gate passbun run build: built 5 entriesbash scripts/file-size.sh: 0 errors (content/inline.ts1,373 lines, warning only)bff60fa4, security and sharded suites included; CI reruns on33b90dd3(rebased ondev, review polish). The earlier sleeping version failed the save and sign-inleft/translate/scale"late restyle" cases; this version keeps the per-frame loop those cases rely on.