Skip to content

Safari: after Cmd-L a coordinate click lands on the address-field overlay the AX tree doesn't show (wrong target) #316

Closed

Description

@SSFSKIM

Defect

Wrong target. In Safari, after ⌘L, a coordinate click on a page button answers success and lands on the address-field overlay, 12 of 12 on hosted macOS.

  • The overlay blanks the page but isn't in the AX tree, so the guard's hit still answers the button (sameElement).
  • The controls delivered 8 of 8: F19 then a click, and ⌘L, Escape, then a click. So the overlay is the cause.
  • A click there can land on an autocomplete suggestion.

Ruling cb252e88: measure first, then build

The candidate: a modifier-key chord, Escape or Enter sent to an app since the screenshot makes coordinate clicks in that app require a re-observation.

Before any build:

Evidence

#287's findings: #287 (comment). Kit: probe/287-hosted.

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 7, 2026
  2. SSFSKIM commented on Nov 8, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: measure-first spike (ruling cb252e88)

  3. SSFSKIM commented on Nov 8, 2026

    @SSFSKIM
    OwnerAuthor

    Spike findings: the candidate is too costly; two narrower rules are proposed

    The spike ran unmodified main 74fe29f on hosted macOS 26.7.2: Safari 27.2, Chrome for Testing, stable Chrome 156, Firefox 159, TextEdit and Finder, in shared and dedicated mode.

    The candidate (cb252e88)

    Over 1,160 clicks, it refused 546 of the 898 that landed (61%). It caught 96 of the 176 clicks that went wrong while reporting success.

    What Safari's overlay is

    It is a separate Safari window at layer 0, above the browser window.

    • It was present in all 48 ⌘L and ⌘L+typing cells.
    • It was absent in all others, including ⌘L+Escape, where the clicks land.

    These do not read it:

    • the focused address field;
    • AXExpanded;
    • the window's own tree;
    • the point lying inside the overlay's bounds (Safari swallows the next page click anywhere).

    Chrome and Firefox

    • Chrome: its omnibox popup is also a window, but clicks pass through: 0 of 64 wrong.
    • Firefox: its urlbar list is in the window's tree and loses clicks under it, 8 of 32. One of them navigated.

    Proposal, pending the design session's ruling

    • W: refuse "observe first" if the app has a new on-screen layer-0 window above the target window since the screenshot.
    • G: a recorded node inside an AXWebArea requires the hit to be inside the same web area.

    On run 2 they caught 76 of 104 wrong clicks, with 37 false refusals out of 449 (8%). The candidate on the same rows caught 56 and refused 273.

    Also found

    • Chrome keeps a page the tab has left. After a navigation, 48 of 48 clicks placed from the old screenshot passed the guard and landed on the new page. G fixes this.
    • Page-made suggestion lists beat the guard in all three browsers: 36 of 48.
    • TextEdit reflows text after Return or ⌘V: 8 of 16 clicks landed on another line.

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

  4. added 5 commits that reference this issue on Nov 8, 2026
  5. added
    status:in-review
    and removed
    status:in-progress
    on Nov 8, 2026
  6. SSFSKIM commented on Nov 8, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-review: PR #332: W+G guard, hosted A/B and still-page gate passed (3 accepted sliver refusals), reviewer-high CORRECT, ci-gate GREEN

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

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #332 (0.27.9)

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:P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions