Skip to content

macOS engine: activation by an element action after its panel is already up is not watched (#463's foreground note can miss it) #472

Open

Description

@SSFSKIM

Problem

#463 carries a background click on an AppKit menu button, a colour well or an <input list> as the element's own action, then confirms that the UI opened. If that action brings the target app to the front, the answer says so (popUpClick.activated and a note to the model). But the foreground watch ends when the window-order check finishes. An app that shows its panel first, and activates itself on a later turn of its event loop, would come to the front after the click has already answered a silent ok. This came from the review of #463's fix wave and hasn't been measured. No measured control behaves this way: #463's AppKit cells left Finder frontmost in every row.

What measuring it would take

  • On hosted macOS, run the kit probe/463-measure with its 10 ms window-list sampler and its frontmost/key-window watch, extended to 3 s after the answer.
  • In shared-behind mode, run every control macOS engine: route 3's shared-mode restore closes transient UI the click opened (popovers, tooltips, menus), answering ok #463 delivers (TextEdit list style, document actions, the colour well, Chrome <input list>), plus any AppKit menu button or popover control on the image that opens a panel. About 5 rows each.
  • Count the rows where the frontmost app changes after the answer returned, with the delay.
  • If there are none, close it as not seen. If there are some, keep the foreground watch alive for a bounded time past the order check, and cover a panel-first, activation-second case with a fake.

Related: #463.

Activity

  1. added
    status:ready-for-implementer
    priority:P3
    spike
    on Nov 22, 2026
  2. added 2 commits that reference this issue on Nov 22, 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

    priority:P3spikestatus:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions