Repository navigation
macOS engine: a click on a frontmost web text field places a caret, as the vendor's does (#258) - #539
Merged
Merged
Conversation
…hit of the element itself (refs #258) The static reading for #258. The vendor gates a plain left click only when isInsideWebView (the element or an ancestor is an AXWebArea, or the app is Atlas), hit-tests from the application element as cua does, and its ancestor search starts at the hit, so a point on the element itself synthesizes. §5.1's window root and strict-descendant reading are marked wrong. Sminos-Session: cursor235#b93055dd (cua on macbook)
…d, not pressed (refs #258) An element click on a text-entry role inside a web area now goes to synthesis when the hit-test at its point answers the element itself, as the vendor's click does (F §18), so it leaves a caret at the point where AXPress kept an earlier selection (#187's cell 3 (i)). Native fields and every other control keep their action. The click takes route 3's existing delivery and guards (#200's delivery guard, #282/#283's element route in shared mode); the record names the rung webTextEntry. Decision Log entry and the remaining divergences in the tech-debt tracker. Sminos-Session: cursor235#b93055dd (cua on macbook)
Sminos-Session: cursor235#b93055dd (cua on macbook)
…refs #258) Ruling 1170 narrows 31bc458 after its review. A web page's text field whose point hits itself is synthesized only when the app is frontmost, by route 3's own frontmost test (frontmostIsTarget, now shared with FakeActivation.deliver); behind another app every engine keeps main's route, so a target owning key focus behind the frontmost app is no longer posted outside the delivery guard (P1), and the datalist's held AXPress, Gecko's press and WebKit's #313 route stay. The gate and #313's route share one lazy web-area read (elementClickRoutes), so a native field walks its parents once. The #258 Decision Log entry is rewritten for 1170, with both outcomes of a background Chromium pointer stated. Sminos-Session: cursor235#b93055dd (cua on macbook)
…ts plain (refs #258) Ruling 1171, after the re-review of ad20332. A frontmost web text field hitting itself is now carried by its own carrier (ElementClickCarrier .frontmostField), not synthesizedClick: one plain left click (route 2') to the field's serving process, no activation and no route-4 assist, the front read again with the gate's frontmostIsTarget immediately before the events. If another app came forward since the plan, nothing is posted and main's action carries the click, recorded as webTextEntryFrontmostLost. A helper-served field in the frontmost app gets the plain click too. The key-focus early exit of activate()/deliver() for other clicks is unchanged. 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. |
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.
Closes #258.
What
An element click on a web text field (AXTextField, AXTextArea, AXComboBox, AXSearchField or AXSecureTextField inside an AXWebArea) whose point hits the field itself now posts one plain click at the field's centre when its app is frontmost. That collapses a selection to a caret, as the vendor's click does. Before, cua pressed through AXPress, which kept the selection: #187 measured 20+7 kept on frontmost Electron, against a caret from the vendor.
The vendor's rule (static, new F §18)
Scope (rulings 1159, 1167, 1170 and 1171)
frontmostIsTarget: the frontmost pid is the serving pid or the app pid, never key focus alone).frontmostField(deliverFrontmostFieldClick, route 2′) runs the in-flight check, re-readsfrontmostIsTargetimmediately before posting, and posts one plain down/up to the serving pid. It does no activation, no FakeActivation and no ForegroundAssist. It keeps the minimized and not-visible refusals and the cursor and click-ordering hooks.webTextEntryFrontmostLostand carried by main's action route, through Safari: an element click on a textarea answers success while focus stays on the web area (false success) #313.elementClickRoutes).Declared gaps (all ticketed)
Proof
WebTextFieldClickTests: 17 tests. They cover frontmost synthesis on every engine and under route 4; background pins (key-focus split, Chrome datalist, Gecko, WebKit); the plan-to-delivery seam with the front lost under route 3 and route 4 (nothing posted, main's route); a helper-served field; the order of the in-flight check; and the native field's single ancestry read.swift test: 1758 tests, 1 skipped, 0 failures. The Xcode 27.2 release build passes.electron/frontmost/click.selectionon hosted runners.Review
Three reviewer-high rounds:
Plugin 0.29.14.
Sminos-Session: cursor235#b93055dd (cua on macbook)