Skip to content

Linux engine: a page-drawn (ARIA role=menu) context menu is answered menuUnconfirmed #377

Open

Description

@SSFSKIM

Enhancement, M4 residue (ruling 687, task 78). Related: candidate 3's menu confirmation (Linux spec DL 2026-11-14), ticket D, #374.

Candidate 3 answers menuUnconfirmed when an element's showContextMenu opens no native menu within 1 s. A page that handles contextmenu itself (it calls preventDefault, then shows its own HTML menu, as Docs-style apps do) gets that answer although its menu did open. The answer says so ("the application may have shown its own menu or ignored the request"), so it stays honest. The vendor answers ok there.

Measured (task 78, t78/proof2, proof3, proof5): a proof page with an ARIA role=menu that it shows on contextmenu, with the registry asked for object:children-changed and object:state-changed:showing.

  • Chrome: after perform_secondary_action showContextMenu on the page's button, Chrome emitted ChildrenChanged 3 times (remove, add, add) and StateChanged once (showing) within 1.5 s, beside one PropertyChange. The page's menu node then read role menu, states showing and visible. The engine answered menuUnconfirmed after 1.04 s.
  • Firefox (opened by an XTEST right click; Firefox offers no showContextMenu): ChildrenChanged 3 (remove/system, add/system, add/system) and StateChanged 5, showing among them. Its menu node read role menu without showing. This is unclear on this run and needs measuring again.

What it would take (not built in candidate 3, ruling 688):

  • The engine has no AT-SPI event machinery: dbus.rs drops every signal, and nothing calls AddMatch or Registry.RegisterEvent.
  • The route needs a signal queue on Bus, a match rule, and registering the two events with the registry for the request's span. While a registration lasts, every application on the bus emits those events to everyone, which costs on large documents.
  • Then a node of role menu newly showing under the window's frame within MENU_WAIT counts as confirmed, with no tree walk on the confirmed path.

Close when: a page-drawn ARIA menu is confirmed in Chrome and in Firefox, and live on the proof page, a page showing no menu still gets menuUnconfirmed. Or close it as won't-do if the event registration's cost is judged too high.

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    on Nov 14, 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

    enhancementpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions