Skip to content

macOS engine: the element route's post-wait recheck presses under the app's own popup (no #452 overlay guard) #456

Closed

Description

@SSFSKIM

Defect

A wrong click under the app's own popup. A background coordinate click in shared mode can take the element route. Before pressing, that route may wait for action names or a focus hold, and then rechecks the point (stalePointRecheck, Input.swift, about line 810). The recheck runs only the tree verdict, not #452's same-app overlay guard.

If the app opens one of its own popups over the point during that wait, the recheck still finds the original element in place and presses it, under the popup. Main does the same. #452 left it unchanged.

Found by reviewer-high on #452's head 023a3bee (P2). It's rare, because it needs the popup to open within the wait. It hasn't been measured on hosted.

What to do

Run #452's guard on the recheck's fresh timed hit-test, the same appWindowOverPoint rule (axHit or popover), before the element press or focus. When the guard refuses, refuse with #452's sentence.

Check

  • A unit test with fakes: a popup appears during the wait, and the press is refused with nothing posted.
  • A hosted cell: an omnibox popup opened during a background element-route click.
  • Ordinary element-route clicks are unchanged.

Related: #452, #454. It is recorded in tech-debt-tracker.md.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P3
    on Nov 21, 2026
  2. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 21, 2026
  3. SSFSKIM commented on Nov 21, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: claimed by cursor235: build (unit-level) while #458 is measured

  4. added
    status:in-review
    and removed
    status:in-progress
    on Nov 21, 2026
  5. SSFSKIM commented on Nov 21, 2026

    @SSFSKIM
    OwnerAuthor

    [review-trail] reviewer-high on edbfbd2..e1a01d4: incorrect, 2 P2 (pending-click wait skipped recheck; final record overwrote early costs), both fixed in 6f1224e; re-review e1a01d4..6f1224e correct, no findings. Hosted qual probe/456-qual README fdf9c19: in-window race main pressed 18/18, fix refused 37/38; parity identical. Residuals (main-existing) in #464.

  6. removed
    status:in-review
    on Nov 21, 2026
  7. SSFSKIM commented on Nov 21, 2026

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #465 (cua 0.28.25)

  8. added a commit that references this issue on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions