Repository navigation
macOS engine: a click recorded on an inert overlay is vouched for by the controls under it (#433) - #445
Merged
Conversation
… recorded control beneath it (refs #433) The stale-point guard kept a click whose recorded node was a transparent overlay alive on its own handle, though the click passed through to whatever lay under it now (#431's twincover: a same-label link slid into a removed one's place). When the node does not act on its own and the hit names no control, the deepest recorded control at the point that is not the node's ancestor is judged as #296 judges a recorded node: its handle in place and unrelabelled, or a re-created handle #431's record accepts. Meta gains underlyingRole and underlyingIdentity. Sminos-Session: cursor235#b93055dd (cua on macbook)
…es in it, keeps unknown controls, and searches from a surviving ancestor (refs #433) The review of 0f79602: an inert decoration reparented from a replaced link into another no longer vouches for the new one, while a link's unchanged text keeps main's verdict whatever lies behind it; a control of unknown actions beneath is judged and never taken as re-created; a re-created control is looked for from its nearest surviving recorded ancestor; the element route's verdict carries the check into the meta; and the refusal names the inert layer over the changed control, with a re-observation and a new aim as the remedy. Sminos-Session: cursor235#b93055dd (cua on macbook)
…arture from its control, walking the node as found now (refs #433) The regression review of 2a1b036: a text re-created outside its link's frame is walked on its new handle; a walk that cannot finish (a parent or role unreadable) keeps the point as main does, and the control's own children list counts as inside; content under a wrapper whose actions did not read belongs to its nearest recorded control above it. The check never refuses where the hit is the node or its own recorded control, alive and in place. Sminos-Session: cursor235#b93055dd (cua on macbook)
…cting ancestor in its document; content of a control keeps main's verdict (refs #433) The regression review of d514da6: every round on the content-of-control path found new refusals main does not make, so it is withdrawn. The record carries whether an ancestor below the node's document acts on its own (past wrappers of unknown actions, framed or frameless, never across a web area), and only a node with none is judged at the control beneath it; a node whose actions were unknown at the observation and acts now is its own target. Decoration reparenting stays main's, for a ticket of its own. Sminos-Session: cursor235#b93055dd (cua on macbook)
…AXPress and for a node that recorded it (refs #433) The review of 17942ad: a clickable group's hit names a control for the #433 gate, main's classification unchanged; a node whose recorded actions included AXPress is never inert though its role did not read. Sminos-Session: cursor235#b93055dd (cua on macbook)
…ntrol under it is still there (refs #433) Hosted batch B on 17942ad (run 44733158011, bgbutton): an unrelated button beside the link in one list, later in AXChildren, both under the veil and the point, was removed; the depth tie took the button and refused clicks main lands on the link. Every innermost recorded control under the point is now judged, and the point is refused only when none is still there. Sminos-Session: cursor235#b93055dd (cua on macbook)
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 #433
What changes
#296's stale-point guard checked the element the observation recorded at the point. If that element is a transparent overlay (an inert group that
pointer-events: nonelets clicks through), the overlay is alive and in place, so the guard kept the click. The click then passed through to whatever control is under the overlay now: on Electron, a same-label link that had slid into a removed link's place.The guard now also vouches for the recorded controls under an inert overlay (
underlyingTargetsandunderlyingRefusalinnative/engine/Sources/Engine/StalePoint.swift).When the check runs. All three must hold:
What it decides.
nodeGone,frameMovedorrelabelled.New meta.
stalePointgainsunderlyingRoleandunderlyingIdentity(handle,recreatedornone), carried into the press verdict.Everything else is unchanged: any click whose recorded node has an acting ancestor (a link's text), or whose hit is interactive, gets main's verdict, reason and delivery. So are #298, #305, #330, #431 and #435.
Plugin 0.28.21 (the bump is commit
68cb34a3).Evidence
docs/evidence/2026-11-20-overlay-target/README.md. Kitprobe/433-qual, workflow 424823141, README405cbb05; every row valid.twincover. On main, Electron lands on B every row. On the final head899c0e3b, CfT and Electron refusenodeGone, 5/5 at each point, and the click never reaches B. Safari refuses on both heads, because its hit test sees through the overlay. On main, CfT posts nothing under an overlay (backgroundClickRefused, a refusal, not a false ok).At parity with main on the final head:
overcontrol, an overlay over an unchanged link;scrim, a click-catching backdrop (ruling 903);bgbutton;rebuildunder;retext,plain,remount.The ordinary-click set at parity on
17942ad7, 10 per head:like,btnremount, the table cells,textbehind;twin,twincap,nounder;wideoverlay.There were 0 new refusals. The final head's two later commits only narrow the overlay gate and change the choice of control under the overlay, which these clicks never reach.
Cost (ruling 905).
stickyscrollnow refuses on Safari and Electron, where main's keep reached nothing.tipremounthas no cost.twinunderrefuses a re-rendered link among same-label links under an overlay (CfT and Electron 10/10), the only cost that loses a landing.Timing.
stalePoint.msp50 is up by 0.6 to 3.8 ms; p95 by at most about 3 ms.Tests.
swift testinnative/engine: 1499 tests, 0 failures, 1 skipped.OverlayTargetTestshas 24. Mutation passes caught every mutant in every wave.Limits
decomove) answers as main does, including its wrong click. That's Stale-point guard keeps a click on an inert decoration that moved from a replaced link into its replacement #443. The content-of-control check that caught it was withdrawn (ruling 909), because each review round found ordinary link clicks it refused.Review
0f79602f: 6 findings. Two need stacking information and went to Stale-point guard under an inert overlay can't see stacking: a control slid over the target, or an overlapping sibling, gets the click #442. The rest were fixed in2a1b0368: two regressions, unknown candidates, press meta, and ruling 905's sentence.2a1b0368: 3 link-text regressions, fixed ind514da6f.d514da6f: 7 items, 5 of them link-text refusals. The content-of-control path was cut instead (ruling 909), in17942ad7.5f873e54.bgbutton, fixed in899c0e3b(keep if any recorded control under the point is unchanged).Sminos-Session: cursor235#b93055dd (cua on macbook)