Skip to content

Engine: a clipping frame read as {0,0,0,0} cuts nothing, and the enabling observation polls it (#312) - #320

Merged
SSFSKIM merged 5 commits into
mainfrom
fix/312-firefox-webarea
Nov 7, 2026
Merged

SSFSKIM merged 5 commits into
mainfrom
fix/312-firefox-webarea

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Summary

Firefox's first screenshot after cua turned its accessibility on refused every click on the page, and now it doesn't. The observation that enables Gecko's accessibility reported the AXWebArea's frame as {0,0,0,0}. AXWebArea clips, so no page node had a shown part, and the stale-point guard refused every page click from that screenshot as interactiveHit: 14 of 14 on hosted Firefox 159.

Closes #312

The rule (design session rulings cb252e88 and 9d97e82a; the spec's #312 Decision Log entry)

  • A clipping frame read as exactly {0,0,0,0} is unplaced, and cuts nothing. This holds in the guard's record, the element route's live visible frame, the walk's selection and the token re-fetch.
    • A frame of no size at a real place still clips, so a collapsed scroll area still hides its content.
  • The observation that enabled accessibility polls the first unplaced clip every 100 ms and stops at the first real frame.
    • The bound is 1 s after enablement, and never past half the observation's deadline.
    • It always makes at least one read.
    • It runs once per observation, and only on the observation whose enablement step set the process's freshness.
  • The meta (cua/observation and the timings) gains clipReread (real or unplaced), clipRereadReads and clipRereadMs, plus unplacedClips when a frame stays unplaced.

Plugin 0.27.3.

Limits

Live proof (GitHub-hosted macOS, Firefox 159.0, 2 reps, main 51b473f against the branch)

Evidence is in docs/evidence/2026-11-07-firefox-webarea/.

Check Main Branch, 2fda5e7
#282's page cells from the first screenshot 14 of 14 refused, interactiveHit 0 refused. The 8 shared cells answer clickUnconfirmed (#315); the 6 dedicated cells deliver
The first observation's web-area frame 0,0,0×0 in 18/18 400,104,620×604–607 in 18/18, clipReread: real at the first poll
The first observation's totalMs, median about 211 ms about 266 ms (+55 ms)
The second observation, and Chrome for Testing, stable Chrome and Safari – none of the keys; time within noise

Tests and review

Sminos-Session: cursor235#b93055dd (cua on macbook)

…e enabling observation re-reads it once (refs #312)

Ruling cb252e88. Firefox's AXWebArea reads {0, 0, 0, 0} on the observation that turns Gecko's accessibility on, its page's frames already real, so the record gave no page node a shown part and every page click from that screenshot was refused as interactiveHit. unplacedFrame (the exact zero rect) cuts nothing in the record, the element route's visibleFrame, the walk's selection and the re-fetch's order; a zero-size frame at a place (a collapsed scroll area) still hides. On an observation whose enablement step set freshSince, the first such frame waits until 1 s after that step (never past half the walk's deadline) and is read once more; a real frame replaces the first read. Meta: unplacedClips, clipReread real|unplaced, clipRereadMs, whitelisted into cua/observation.

Sminos-Session: cursor235#b93055dd (cua on macbook)
The rule (an unplaced clipping frame cuts nothing; the enabling observation re-reads it once, 1 s after its enablement step), ruling cb252e88, the measured mechanism from #287's runs, the scope chosen (the exact zero rect, any clipping role; a collapsed clip at its place still hides), the limits, the offline proof and what the hosted check must verify on Firefox.

Sminos-Session: cursor235#b93055dd (cua on macbook)
Sminos-Session: cursor235#b93055dd (cua on macbook)
…ry 100 ms up to its 1 s bound (refs #312)

Ruling 9d97e82a on the hosted check (run 42394416982): the single re-read at the 1 s point found the frame real in 22 of 22 but cost Firefox's first observation about 860 ms, the frame arriving about 0.55 s after that observation ended. ClipRereadPoll reads the frame again every clipRereadPollMs (100 ms), stopping at the first that is a place or once clipRereadDue passes (1 s after the enablement, never past half the deadline), and reads at least once. Still one clip per observation. Meta: clipRereadMs is the poll's time, clipRereadReads its reads (whitelisted). Spec entry and evidence README amended; the poll's hosted numbers are left to fill.

Sminos-Session: cursor235#b93055dd (cua on macbook)
Sminos-Session: cursor235#b93055dd (cua on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T18:13:28.453579Z ec06eaa PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit b27ceb3 into main Nov 7, 2026
6 checks passed
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.

Firefox: the observation that enables Gecko's accessibility reports AXWebArea as {0,0,0,0}, so every page click on it is refused

1 participant