how can i disable 3 bar menu for all users on firefox running on top of Linux
i need to disable all settings for all users on firefox running on top of linux
Réiteach roghnaithe
In Firefox 52 you should still be able to use CCK2, so maybe look at that extension to see if it includes what you want.
Mike Kaply is active at the Firefox Enterprise forum.
Read this answer in context 👍 0All Replies (14)
You'll probably want to take a deeper look at the Customizing Firefox Using policies.json support documentation. It's intended for system administrators to restrict Firefox usage.
There is no builtin way to disable the menu button in Firefox, but you are able to block access to the settings page, addons page, etc.
Thanks for your response Wesley!
I created the policies.json file as per the support documentation. But i am still seeing all the options in firefox. Please see the policies file i created below and let me know if i need to change anything.
Distribution : Red Hat Enterprise Linux 7.4, x86_64 Firefox version : Mozilla Firefox 52.8.0 file location: /usr/lib64/firefox/distribution/policies.json
- cat /usr/lib64/firefox/distribution/policies.json
{
"policies": { "BlockAboutAddons": true "BlockAboutConfig": true "BlockAboutProfiles": true "BlockAboutSupport": true "DisableSetDesktopBackground": true "DisableMasterPasswordCreation": true "DisableAppUpdate": true "DisableDeveloperTools": true "DisableFeedbackCommands": true "DisableFirefoxScreenshots": true "DisableFirefoxAccounts": true "DisableFirefoxStudies": true "DisableForgetButton": true "DisableFormHistory": true "DisablePocket": true "DisablePrivateBrowsing": true "DisableProfileImport": true "DisableProfileRefresh": true "DisableSystemAddonUpdate": true "DisableSecurityBypass": { "InvalidCertificate": true "SafeBrowsing": true } "DisplayBookmarksToolbar": true "DisplayMenuBar": true "DontCheckDefaultBrowser": true "NoDefaultBookmarks": true "OfferToSaveLogins": false "Homepage": { "URL": "https://www.google.com/", "Locked": true } "OverrideFirstRunPage": "" }
}
Items within the policies.json file need to be separated with commas. Your file should look like this instead:
{
"policies": {
"BlockAboutAddons": true,
"BlockAboutConfig": true,
"BlockAboutProfiles": true,
"BlockAboutSupport": true,
"DisableSetDesktopBackground": true,
"DisableMasterPasswordCreation": true,
"DisableAppUpdate": true,
"DisableDeveloperTools": true,
"DisableFeedbackCommands": true,
"DisableFirefoxScreenshots": true,
"DisableFirefoxAccounts": true,
"DisableFirefoxStudies": true,
"DisableForgetButton": true,
"DisableFormHistory": true,
"DisablePocket": true,
"DisablePrivateBrowsing": true,
"DisableProfileImport": true,
"DisableProfileRefresh": true,
"DisableSystemAddonUpdate": true,
"DisableSecurityBypass": {
"InvalidCertificate": true,
"SafeBrowsing": true
},
"DisplayBookmarksToolbar": true,
"DisplayMenuBar": true,
"DontCheckDefaultBrowser": true,
"NoDefaultBookmarks": true,
"OfferToSaveLogins": false,
"Homepage": {
"URL": "https://www.google.com/",
"Locked": true
},
"OverrideFirstRunPage": ""
}
}
Hope this helps.
Still the same :(
The menu items will still appear in the menu, but when you click on them, it should say that it's blocked.
i am still able to add bookmarks and open "about:config".
I also have mozilla.cfg file configured with lockPref enabled. Would that be overwriting the policies.json?
- cat /usr/lib64/firefox/mozilla.cfg
// lockPref("browser.startup.homepage", "https://www.google.com/"); lockPref("xpinstall.enabled", false); lockPref("browser.download.folderList", 2); lockPref("browser.download.defaultFolder", "/tmp/preventdl"); lockPref("browser.download.dir", "/tmp/preventdl"); lockPref("browser.download.downloadDir", "/tmp/preventdl"); lockPref("plugin.default_plugin_disabled", false); lockPref("plugins.hide_infobar_for_missing_plugin", true); lockPref("network.protocol-handler.external.mailto", false); lockPref("browser.shell.checkDefaultBrowser", false); lockPref("signon.rememberSignons", false); lockPref("app.update.enabled", false); lockPref("extensions.update.enabled", false); lockPref("browser.tabs.warnOnClose", false); lockPref("browser.search.update", false); lockPref("browser.formfill.enable", false); lockPref("signon.prefillForms", false); lockPref("network.proxy.no_proxies_on", "localhost, 127.0.0.1, storedev, bninside, webstore7"); lockPref("javascript.options.jit.content", false)
- cat /usr/lib64/firefox/defaults/preferences/all-redhat.js
pref("general.config.obscure_value", 0); pref("general.config.filename", "mozilla.cfg"); pref("app.update.auto", false); pref("app.update.enabled", false); pref("app.update.autoInstallEnabled", false); pref("browser.backspace_action", 2); pref("browser.display.use_system_colors", true); pref("browser.download.folderList", 1); pref("browser.link.open_external", 3); pref("browser.shell.checkDefaultBrowser", false); pref("general.smoothScroll", true); pref("general.useragent.vendor", "Red Hat"); pref("general.useragent.vendorSub", "FIREFOX_RPM_VR"); pref("intl.locale.matchOS", true); pref("storage.nfs_filesystem", false); pref("dom.ipc.plugins.enabled.nswrapper*", false); pref("network.manage-offline-status", true); pref("toolkit.networkmanager.disable", false); pref("browser.startup.homepage", "data:text/plain,browser.startup.homepage=https://www.google.com"); pref("toolkit.storage.synchronous", 0); pref("startup.homepage_override_url", "http://www.redhat.com"); pref("startup.homepage_welcome_url", "http://www.redhat.com"); pref("extensions.shownSelectionUI", true); /* Workaround for rhbz#1110291 */ pref("network.negotiate-auth.allow-insecure-ntlm-v1", true); /* Workaround for mozbz#1063315 */ pref("security.use_mozillapkix_verification", false); pref("geo.wifi.uri", "https://location.services.mozilla.com/v1/geolocate?key=%MOZILLA_API_KEY%"); pref("browser.tabs.remote.autostart", false); pref("javascript.options.baselinejit", true);
It's possible. I tested on my installation of Firefox using your exact policies.json file (after I had added the missing commas) and it worked perfect for me.
Adding to what you said before, there is nothing in your policies.json file that blocks the ability to add bookmarks, so that feature will still work.
Athraithe ag Wesley Branton ar
i have re-installed Firefox and created the policies.json file. But still the policies are not taking effect. The homepage is also not loading as per policies.
is the file location/permissions correct? do these policies apply to all users on the server?
- firefox -version
Mozilla Firefox 52.8.0
-rw-r--r-- 1 root root 984 Jul 18 16:06 /usr/lib64/firefox/distribution/policies.json
Ok, that's the issue. Firefox Enterprise Policies was introduced in Firefox version 60, so it only works on Firefox 60 or higher. If you are running Firefox 52 (ESR for legacy support I assume), then this feature will not work for you. Sorry.
Thank you Wesley!!
Is there any other feature for Firefox 52 that can disable the settings like adding bookmarks/changing homepage/hamburger button and others ?
i have updated firefox to version 61. Now how do i disable the hamburger button.
i am trying different things here, trying to disable hamburger button using userChrome.css. Where should teh file be placed to take effect globally?
To hide the menu button with the userChrome.css
file, you will want to use the #PanelUI-menu-button {display: none;}
rule to do so.
The downside to the userChrome.css
file is that it can't be applied globally. Each Firefox profile uses it's own userChrome.css
file. The file should be created in a directory called chrome
located in your Firefox profile folder.
Since you can't apply them globally, you would need to install that file to each Firefox profile and any new profiles will not have this file until you add it to the folder.
Réiteach Roghnaithe
In Firefox 52 you should still be able to use CCK2, so maybe look at that extension to see if it includes what you want.
Mike Kaply is active at the Firefox Enterprise forum.