Repository navigation
Engine: a shared-mode pointer into a background Firefox page is element-routed, focused by its press or refused, as on Chromium (#315) - #327
Conversation
…nt-routed, focused by its press or refused, as on Chromium (refs #315) Gecko (principal class GeckoNSApplication) gets #282's web-area rule: pointerView takes the page engine, a Gecko hit inside an AXWebArea is a web area, and its chrome (toolbar, tabs) stays unknown, since Gecko's own click-through check refuses only inside a XUL browser or tree. A Gecko text field is focused by its own action with its focus read back (#313's readingFocus), never #283's AXFocused write. #288's establishment stays Chromium's. Dedicated mode, Chromium, Safari and native apps are unchanged. GeckoPointerTests, 10. Sminos-Session: cursor235#b93055dd (cua on macbook)
…und-click paragraph, plugin 0.27.7 (refs #315) The entry records how Gecko is recognised, why the rule covers only Firefox's web area (Gecko's source and #287's toolbar Reload cell), the focus route by press, drags, and what the hosted check must verify. The paragraph's new text is carried by the docs test, repl-parity's docs oracle and the surface inventory's Table 3 addition (2026-11-07, #315). Sminos-Session: cursor235#b93055dd (cua on macbook)
The plugin version stays 0.27.7, over #326's 0.27.6. Sminos-Session: cursor235#b93055dd (cua on macbook)
…ks on its text fields (refs #315) The design session's ruling 99e45959: on a Gecko page, backgroundClickRefused and its observe-first form add that a text field still works by an element click on it, which focuses it through accessibility, then typing or set_value. Keyed on the page engine the pointer carries (PointerTarget.engine), reaching set_value's and select_text's fallback click, a drag, and a click on something with no action. Chromium's and every other engine's wording is unchanged. Sminos-Session: cursor235#b93055dd (cua on macbook)
…Firefox page focuses the field by its press (refs #315) The hosted A/B (run 42457001051, confirmations 42459610340 and 42460845888) found main's posted fallback setting the value 3 of 3, which acb88f7's refusal lost. The design session's ruling 1cd6ed32: where #282 refuses the fallback's pointer on a Gecko page, the field's own AXPick/AXPress goes, its focus is read back within 300 ms, and the method proceeds; nothing writes AXFocused or a selection on that path. A field with no action is refused, one whose focus never reads back answers clickUnconfirmed, each naming only Firefox brought forward and a dedicated desktop. Chromium, other engines and dedicated mode are unchanged. Sminos-Session: cursor235#b93055dd (cua on macbook)
…son bringing the app forward, Chromium's too (refs #315) The design session's ruling 80a11b9a: no refusal may read as telling the model to raise the app, which in shared mode puts a window over the person's. #282's shared template and every sentence #315 adds now say "use a dedicated desktop, or ask the person to bring <App> forward"; Chromium's text changes with it. The review of acb88f7..146b76a (one P2): the fallback's unconfirmed answer claims only that the requested value or selection was not written, since the field's action went. The JS service tests, the first-call paragraph, its docs test, the parity docs oracle and the surface inventory carry the new clause. Sminos-Session: cursor235#b93055dd (cua on macbook)
…k logged as debt (refs #315) Sminos-Session: cursor235#b93055dd (cua on macbook)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2423b8c125
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| While you act in an app, a cursor labelled with this session's name shows the user where each action lands, unless the user has turned it off, and fades a few seconds after your last action. Your actions do not wait for it, it is not the user's pointer, and your screenshots do not show it. | ||
|
|
||
| A web page in a Chromium-based app (Chrome, Electron apps) that is in the background does not take a pointer: unless this Mac is a dedicated desktop, a left click, double click or drag there is refused with "<App>'s web page does not accept a background click; bring <App> forward or use a dedicated desktop", and nothing is sent. A plain click there on a button, checkbox, radio button, link, pop-up button or menu item goes through the accessibility action of that element instead, and one on a checkbox or radio button whose state does not change fails with `clickUnconfirmed`. A plain click there into a text field, text area or editable region gives it keyboard focus through accessibility instead, with no mouse event, so the page sees no click; the result's text says whether the caret was put at the point, and when it was not, typing goes to the field's existing selection or its start, so use select_text or set_value first if the position matters. A field that does not report focus fails with `clickUnconfirmed`. A click or drag that fails with `clickUnconfirmed` was sent but may only have activated the window: observe the app before any retry. | ||
| A web page in a Chromium-based app (Chrome, Electron apps) or in Firefox that is in the background does not take a pointer: unless this Mac is a dedicated desktop, a left click, double click or drag there is refused with "<App>'s web page does not accept a background click; use a dedicated desktop, or ask the person to bring <App> forward", and nothing is sent. A plain click there on a button, checkbox, radio button, link, pop-up button or menu item goes through the accessibility action of that element instead, and one on a checkbox or radio button whose state does not change fails with `clickUnconfirmed`. A plain click there into a text field, text area or editable region gives it keyboard focus through accessibility instead, with no mouse event, so the page sees no click; the result's text says whether the caret was put at the point, and when it was not, typing goes to the field's existing selection or its start, so use select_text or set_value first if the position matters. In Firefox the field is focused by its own accessibility action instead, which does not put the caret at the point. A field that does not report focus fails with `clickUnconfirmed`. A click or drag that fails with `clickUnconfirmed` was sent but may only have activated the window: observe the app before any retry. |
There was a problem hiding this comment.
Limit the no-click-event guarantee to Chromium
For a background Firefox text field, the expanded paragraph now promises “no mouse event, so the page sees no click,” but the new route invokes the field's AXPress. The committed evidence in docs/evidence/2026-11-08-gecko-routes/README.md explicitly reports trusted mousedown, mouseup, and click events from that press. Because this document is supplied to the model, the incorrect guarantee can cause it to treat focusing a Firefox field as free of click-handler side effects. Scope that guarantee to Chromium and describe Firefox's page-visible events, updating the matching docs oracle too.
Useful? React with 👍 / 👎.
Summary
In shared mode, clicks into a background Firefox page were lost: Gecko's page view refuses the first mouse, so the posted click never reached it (34 of 34 coordinate clicks, and 18 of 18
/fixedtailrows by token). Now a pointer into a Firefox page is carried through Accessibility, as on Chromium:set_value and select_text now focus an unfocused Firefox field the same way. Before, they posted a click, which reordered Firefox above the person's window inside the screen hold, where it was hidden, and put a pointerdown on the page.
Closes #315
The rule (design session rulings cb252e88, 99e45959, 1cd6ed32 and 80a11b9a; the spec's #315 Decision Log entry)
GeckoNSApplication(pageEngineOf).pointerViewandestablishedPointerViewnow take the page engine; Chromium's answers are unchanged.<browser>or<tree>. That is in Gecko's source (nsCocoaWindow.mm,EventStateManager.cpp), and Background-click (#282) unmeasured configs: stable Chrome, Safari, Firefox first mouse, AXManualAccessibility write effect #287's toolbar Reload landed 3 of 3. The toolbar is posted as before, under Stated limits from #287: Firefox toolbar Reload unconfirmed, VS Code release no-op, VS Code Toggle Panel unresolved #318's stated limit./fixedtailrows are reached.Error text changes (models see these)
backgroundClickRefusedadds what still works: "A text field on the page still works in the background: click the field by its element ID, which focuses it through accessibility, then type or set its value".backgroundClickRefused, "…so nothing was changed".clickUnconfirmed, "…so the requested value or selection was not written", followed by "observe before any retry".docs/cua-api/agent-cursor.md's background-click paragraph now names Firefox. That paragraph, carried in the docs oracle and the surface inventory, is repl-parity's whole expected diff.Live proof (GitHub-hosted macOS, main fc3b080 against the branch, behind a frontmost TextEdit, window order watched every 5 ms)
The evidence is in
docs/evidence/2026-11-08-gecko-routes/./fixedtailrow below the top, by tokenclickUnconfirmed; a double click leaks 2 pointer eventsRuns:
The kit is
probe/315-ab, off main.Limits
clickUnconfirmedalthough it works (Stated limits from #287: Firefox toolbar Reload unconfirmed, VS Code release no-op, VS Code Toggle Panel unresolved #318).ElementInput.swiftreads live Accessibility, so it is covered by the hosted check rather than by unit tests.Tests and review
GeckoPointerTestshas 14. The focused node tests (service, docs, oracle) pass 56 of 56.Sminos-Session: cursor235#b93055dd (cua on macbook)