DisplayMenuBar enterprise policy overrides user choice
Categories
(Firefox :: Enterprise Policies, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr140 | --- | unaffected |
| firefox144 | --- | wontfix |
| firefox145 | --- | wontfix |
| firefox146 | --- | verified |
| firefox147 | --- | verified |
People
(Reporter: k4sum1, Assigned: emilio)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
Steps to reproduce:
Make a distribution\policies.json file in Firefox install directory.
Add these contents
{
"policies": {
"DisplayMenuBar": true
}
}
Start web browser
Disable menu bar
Close web browser
Start web browser
Actual results:
The menu bar shows again even though the user disabled it.
Expected results:
The menu bar should stay disabled.
Comment 1•1 month ago
|
||
The Bugbug bot thinks this bug should belong to the 'Firefox::Enterprise Policies' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
I'm pretty sure this commit is the cause of the issue, but I haven't explicitly tested reverting it.
https://github.com/mozilla-firefox/firefox/commit/0aa2101448acfbcb1f040301efda15428abce5ff
https://hg-edge.mozilla.org/mozilla-central/rev/98bcb3a4ff0a
I can say this is the first build to have the issue, and this build is the first to have that commit.
https://archive.mozilla.org/pub/firefox/nightly/2025/07/2025-07-29-21-04-51-mozilla-central/
I don't know why sending a comment Untriaged the bug, so I added it back to Enterprise Policies
I discovered default-on is also valid for DisplayMenuBar, and I tested it, and thought oh they changed the behavior for true and default-on works, but no, I need to add quotes around "default-on" for it to work in the policies.json, and it also shows the issue here when set.
I finally got around to testing it, and yes this commit is the issue.
| Assignee | ||
Comment 6•1 month ago
|
||
runOncePerModification works on strings. If you pass a boolean down it
will always call its callback (because "true" != true etc).
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
Comment 7•1 month ago
|
||
Set release status flags based on info from the regressing bug 1979014
I sent this on Matrix, but I'll also send it here. Applying this patch fixes the issue. Thank you.
Updated•1 month ago
|
Comment 10•1 month ago
|
||
Comment 11•1 month ago
|
||
Backed out for causing bc failures @browser_policy_display_menu.js.
| Assignee | ||
Comment 12•1 month ago
|
||
On macOS we have the native menubar so we can't hide it. I'll reland with the subtest effectively skipped there.
Comment 13•1 month ago
|
||
Comment 14•1 month ago
|
||
| bugherder | ||
Updated•28 days ago
|
Updated•28 days ago
|
Reproducible on a 2025-10-26 Firefox Nightly build on Windows 10.
Verified as fixed on Firefox Nightly 147.0a1 and Firefox 146.0b5 on Windows 10 and Ubuntu 22.
Updated•15 days ago
|
Description
•