Make it possible to hide items from the application menu

RESOLVED FIXED in Firefox 66

Status

()

enhancement
RESOLVED FIXED
5 months ago
5 months ago

People

(Reporter: mossop, Assigned: mossop)

Tracking

unspecified
mozilla66
Points:
---

Firefox Tracking Flags

(firefox66 fixed)

Details

Attachments

(1 attachment)

We're trying to create a modal dialog and block the user from doing anything else until it is closed. But the application menu still shows items for About and Preferences. It would be nice if we had a way to disable or hide these.

As far as I can tell by the time I get to this point the application menu has already been built from the hidden window and there doesn't seem to be a way to replace it with the menus from a new window, but I can still manipulate the menuitems in the hidden window.

So I've added a check when building the application menu to skip items which are collapsed (they are all already hidden).

Comment 2

5 months ago
Pushed by dtownsend@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/50b3268954b1
Make it possible to hide items from the application menu. r=spohl

Comment 3

5 months ago
bugherder
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in before you can comment on or make changes to this bug.