Skip to content

Refusal message: name a covering window of the same app (stable Chrome's omnibox popup) instead of blaming the page #317

Closed

Description

@SSFSKIM

Problem

In stable Chrome, ⌘L opens the omnibox suggestion popup over the page. A click on a page button is then correctly refused: the hit-test finds nothing in the target window (noHit). But the refusal message blames the page, when the button is covered by another window of the same app.

This was 3 of 4 on hosted macOS (Chrome 156.0.8078.80). Chrome for Testing pressed 4 of 4.

Proposal (P3)

When the point lies under a window of the same app, name that covering window in the refusal message.

Evidence

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

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    on Nov 7, 2026
  2. SSFSKIM commented on Nov 9, 2026

    @SSFSKIM
    OwnerAuthor

    Finding: #316's rule W already covers the case this ticket filed

    Proposal: close #317 as covered by #316 (PR #332, merged in 81a4309). One narrower case is left. It needs engine code and a measurement first, so it belongs in a ticket of its own (below).

    The case filed: the popup opens after the screenshot

    On #287's main, the hit-test answered nothing in the target window, so the stale-point guard kept the point (noHit). #282's walk then refused it as a possible web area, with "Google Chrome's web page does not accept a background click…".

    Since #316, the guard reads the window list before the tree (guardedPointVerdict, StalePoint.swift). Chrome's omnibox popup is a layer-0 window of Chrome's above the screenshot's window that the screenshot's list did not hold, so rule W refuses first (newWindow), wherever the popup lies. deliverPointer throws that refusal before #282's activation or refusal runs, in both desktop modes.

    Measured in #316's hosted A/B (run https://github.com/SSFSKIM/cua/actions/runs/42506462753, stable Chrome 156; per-job results in ~/.local/share/probe-316/run-42506462753/ on the MacBook):

    • The cmdL sequence (⌘L, then a coordinate click from the screenshot taken before it): on the branch, 8 of 8 were refused newWindow, with stalePoint.newWindow 1858, the popup. That covers the button, checkbox, link and textarea, in shared and dedicated mode. On main, all 8 landed: the popup (499, 56, 458×138) did not cover those points.
    • Every refusal's message names the covering window of the same app: The screen changed since the screenshot: Google Chrome has opened a window over the one the screenshot showed, which can take the click. Nothing was sent. Call getScreenshot for a new screenshot, then give the coordinates in its pixels.

    That is this ticket's proposal. The A/B ran Chrome frontmost. #287's cell ran it behind TextEdit, and W does not depend on which app is frontmost: Safari behind a frontmost TextEdit was refused newWindow 32 of 32 in the same A/B.

    What is left: the popup is already up in the screenshot, over the point

    Here W passes, since the screenshot's list holds the popup. The hit-test answers no element of the target window, as on #287's main: windowHit (Input.swift) turns a hit in another window of the app into nil. The guard keeps the point (noHit). Then:

    This case is not measured. The A/B's cmdLreobs cells (⌘L, a re-observation that held the popup, then a click) all clicked outside the popup's bounds (holdsPoint false, 16 of 16), and all ran Chrome frontmost.

    What a fix needs, all engine Swift:

    Measure first, with a background stable Chrome behind TextEdit, ⌘L, a re-observation, then a click inside the popup. Check that the refusal is what arises, and whether a click there ought to be carried at all.

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

  3. added
    status:in-progress
    and removed
    status:ready-for-implementer
    on Nov 9, 2026
  4. SSFSKIM commented on Nov 9, 2026

    @SSFSKIM
    OwnerAuthor

    [board] in-progress: Found covered by #316's work (fix/316-overlay-guard)

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

    @SSFSKIM
    OwnerAuthor

    [board] in-review: Covered by PR #332

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

    @SSFSKIM
    OwnerAuthor

    [board] done: Covered by #316's new-window rule (PR #332, 0.27.9): stable Chrome's omnibox after Cmd-L is refused newWindow, 8/8 in #316's A/B. The remainder, a click inside a popup that is already in the screenshot, moves to its own ticket.

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

    enhancementpriority:P3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions