Repository navigation
Description
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 showContextMenuon the page's button, Chrome emittedChildrenChanged3 times (remove,add,add) andStateChangedonce (showing) within 1.5 s, beside onePropertyChange. The page's menu node then read rolemenu, statesshowingandvisible. The engine answeredmenuUnconfirmedafter 1.04 s. - Firefox (opened by an XTEST right click; Firefox offers no
showContextMenu):ChildrenChanged3 (remove/system,add/system,add/system) andStateChanged5,showingamong them. Its menu node read rolemenuwithoutshowing. 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.rsdrops every signal, and nothing callsAddMatchorRegistry.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
menunewly 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