Skip to content

Page-made suggestion lists take a coordinate click aimed at the control under them (wrong target, all browsers) #330

Closed

Description

@SSFSKIM

Defect

Wrong target. A coordinate click aimed at a page control that lies under the site's own suggestion dropdown lands on a suggestion, and the page navigates. The engine answers success. No key is involved: typing into the field is enough to open the list.

Next

Measure first. Price a rule on #305's still-page sweep before any build: for example, the hit's AX subtree or frame changed since the screenshot, or a new listbox or option over the point.

Evidence

Activity

  1. added
    bug
    status:ready-for-implementer
    priority:P2
    on Nov 8, 2026
  2. added 2 commits that reference this issue on Nov 8, 2026
  3. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 9, 2026
  4. SSFSKIM commented on Nov 9, 2026

    @SSFSKIM
    OwnerAuthor

    #330 measured: what a page's suggestion list looks like in the tree, and a rule that catches it

    Measurement only. Nothing is built; the proposal goes to the design session first.

    Runs

    The cells:

    • Suggestion pages: six list kinds, 8 wrong clicks each per browser.
    • Landed clicks on the same pages: 60 per browser.
    • Near-point changes: 72 per browser, across nine scenes, among them an accordion, a toast, a hover menu, a sticky header, and an image inserted behind the controls.
    • The still sweep: about 149 kept clicks per browser, including Wikipedia, Hacker News and MDN.

    What the tree shows at click time

    • Safari and Firefox:
      • The list is a new node: an AXList for role=listbox, an AXGroup for plain divs.
      • The hit is the list's text or the list itself, so main keeps it as nonInteractiveHit.
      • The recorded node still reads its old frame.
    • Chrome:
      • The list is new, under the same parent. When it comes before the covered control in the DOM, Chrome's hit-test answers the covered control (sameElement), whatever the z-index. When it comes after (the end-of-body kind), Chrome answers the list.
      • Repeating the hit-test 0, 60 and 180 ms later changes nothing.
      • Chrome also answers a button's label, an AXStaticText that no AXChildren lists.
    • Notifications: no browser posts AXCreated or AXMenuOpened for page content.
    • The native <datalist>:
      • Safari opens a new window, so W refuses.
      • In Firefox, G refuses.
      • In Chrome, clicks pass through its popup and land.

    Candidates (run 2; catches out of 30 covered clicks, false refusals out of 60 + 72 + ~149)

    Candidate Safari Firefox Chrome False refusals
    dL: a new element in the hit's ancestry, listed by its recorded parent 30 30 24 0 in every set
    dL, ancestors only 18 24 18 0
    (d) without the "listed" check 30 30 24 Chrome 24/60, 9/72, 8/146
    (a) pruned descent at the point 24 24 24 8/72 per browser (the image behind the controls), sweep 0
    (a) full walk 30 30 30 8/72; p95 118–183 ms, cut at its cap on 64–72 clicks per browser
    dL or (a) pruned 30 30 28 8/72 per browser
    (b) popup role at the point 12 12 12 0
    (c) the focused field reports AXExpanded 8 (combo only) 8 8 6/60 per browser
    (e) AX creation notifications 0 0 0 0
    • The opacity kind: wrong 8 of 8 in every browser, and no rule catches it, because the record already holds the list.
    • Chrome's combobox link cells: its list overflows the field's wrapper, and Chrome answers the covered link. Only the full walk or (c) catch them.
    • Wikipedia's own suggestion list: main already refuses some covered clicks as interactiveHit, because its items are links. It still kept 8 of 8 wrong in Safari, 4 of 8 in Chrome and 2 of 8 in Firefox. dL fired on every covered click there, 24 of 24 across the browsers.

    What a re-observation shows

    • The tree: it lists the dropdown in all three browsers.
    • The screenshot: it shows the list in Chrome and Firefox. Safari's page paints blank on the hosted runner, so Safari can't answer this there.
    • The rules after a re-observation: they fire on nothing, and a click on a suggestion lands.

    Proposal

    • The rule: dL. It applies wherever the recorded node lies in an AXWebArea, after Engine: refuse a coordinate click whose screenshot target has moved or been replaced (stale-point guard) #296's checks and rule G.
    • What it checks: the hit's chain up to the recorded web area. G already walks that chain. It refuses when the topmost element on the chain is missing from the record, its parent is recorded with every child recorded, and the parent's live AXChildren lists it.
    • What it adds: about one read.
    • What it doesn't add: the Chromium-only pruned descent, which would bring Chrome from 24 to 28. It refuses an element inserted behind the controls (z-index:-1). AX can't tell z-order, so that cost would be permanent.

    Docs limit text: "A suggestion list the page shows without adding elements (one shown by opacity, or moved into place) still takes a click aimed at the control under it. In Chrome, so can a list that overflows its field's container, because Chrome's hit-test answers the covered control. After typing into a field that offers suggestions, press Escape or take a new screenshot before clicking near it."

    Artifacts: ~/.local/share/probe-330/run-42556940112/ and run-42560125050/ on the MacBook.

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

  5. SSFSKIM commented on Nov 9, 2026

    @SSFSKIM
    OwnerAuthor

    Ruling (design session 1ea561bc, 11bec0ed)

    Building on fix/330-new-element-over-point, from main 364e017.

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

  6. 12 remaining items

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

    @SSFSKIM
    OwnerAuthor

    [board] done: Landed via PR #352 (0.27.23)

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