Skip to content

Linux engine: the menu detection misses GTK 4's, Firefox's and Qt's menus; ShowMenu and menu.popup answer ok unconfirmed #379

Open

Description

@SSFSKIM

Stated limit, M4 (task 78, ruling 691). Related: candidate 3, #374.

Candidate 3's detection (copy::open_menu) confirms a menu that appears as a new child of the element's application holding a menu item, the rule copy.rs had for Chrome. Here is what it does with a real context menu in each family the gate drives, opened by an XTEST right click (t78/proof4, proof5):

  • Confirmed: Chrome, Electron, GTK 3 (gedit), LibreOffice (Writer). Each menu is a new application child, a frame or a window.
  • In the tree, but not as an application child:
    • GTK 4 (gnome-text-editor): a showing menu 17 levels down, under the text box;
    • Firefox: a showing menu directly under the browser's frame.
  • Never in the tree: Qt 5 (kate) and Qt 6 (qtcreator). The menu window maps, but no showing menu node appears anywhere in the application's subtree (893 and 1,260 nodes walked).

None of these families offers an action named showContextMenu: GTK 4 names its own menu.popup, Qt ShowMenu, and Firefox and LibreOffice none. So no request can reach the detection there. perform_secondary_action showContextMenu is refused as unavailable, and a right click's fallback finds no such action. The limit would bite only if a family began to offer the action.

  • Related, outside candidate 3's scope: perform_secondary_action ShowMenu (Qt) and menu.popup (GTK 4) also request a menu, and still answer ok as soon as they are asked for, as the vendor does. They are the Linux counterparts of macOS engine: perform_secondary_action Show Menu answers ok without confirming a menu appeared #374 (macOS's AXShowMenu). They were kept out of candidate 3 because the detection can't see their menus, so confirming them would turn every working Qt and GTK 4 menu into menuUnconfirmed.
  • Close when: the detection sees GTK 4's, Firefox's and Qt's menus live: a menu newly showing under the element's window for GTK 4 and Firefox, and Qt's menus found in the tree. After that, ShowMenu and menu.popup confirm as showContextMenu does, answering ok only once a menu appears, otherwise menuUnconfirmed.

Activity

  1. added
    bug
    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

    bugpriority:P3status:ready-for-implementer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions