We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Hide address bar and tool bar for security compliance

  • 3 个回答
  • 1 人有此问题
  • 11 次查看
  • 最后回复者为 cor-el

more options

I am building a computer kiosk that utilizes Firefox Quantum ESR 60.3 to access sensitive data, and therefore has to fit certain security compliance standards. Part of these standards include hiding the address bar and toolbar in order to restrict access to settings to users. I've tried implementing a "userChrome.css" script to hide it but I think that solution does not work for versions after 57 as it did not work. I've also tried editing the profile's "prefs.js" file to no avail.

Is there a solution to hide the address bar/toolbar that works with the newest version of Firefox Quantum ESR?

Here's a link to the userChrome solution: https://superuser.com/questions/977912/firefox-hide-everything-except-content-area-of-the-browser/1269912#1269912

I am building a computer kiosk that utilizes Firefox Quantum ESR 60.3 to access sensitive data, and therefore has to fit certain security compliance standards. Part of these standards include hiding the address bar and toolbar in order to restrict access to settings to users. I've tried implementing a "userChrome.css" script to hide it but I think that solution does not work for versions after 57 as it did not work. I've also tried editing the profile's "prefs.js" file to no avail. Is there a solution to hide the address bar/toolbar that works with the newest version of Firefox Quantum ESR? Here's a link to the userChrome solution: https://superuser.com/questions/977912/firefox-hide-everything-except-content-area-of-the-browser/1269912#1269912

所有回复 (3)

more options

Customize Firefox controls, buttons and toolbars

Type about:customizing<enter> in the address bar.


Note: about:customizing is no longer present in Firefox 47+ releases.

  • Press Alt or F10 to bring up the toolbar.
    Then View > Toolbars > Customize.
  • Right-click on a blank spot in the toolbar and select Customize.

Look for Show / Hide Toolbars at the bottom left.

There is also a Restore Defaults button at the bottom middle.

more options

FredMcD, thanks for your response. Unfortunately, when you use that utility, it does not allow you to remove the address bar. Additionally, as I am using Firefox ESR 60.3, I am not able to use the about:customizing utility. Do you konw of any other way to hide the address bar?

more options

If you want to hide the entire Navigation toolbox area with all toolbars then you can use the first code in userChrome.css.

Add code to the userChrome.css file below the default @namespace line.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

/* hide entire navigator toolbox*/
#navigator-toolbox { display:none !important; }

These are the IDs of all the toolbars.

/* IDs for allr toolbars */
#toolbar-menubar,
#nav-bar,
#PersonalToolbar,
#TabsToolbar {display:none!important;}

It is not that difficult to create userChrome.css if you have never used it.

The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder.

You can find this button under the "Application Basics" section as "Profile Folder -> Open Folder". If you click this button then you open the profile folder in the Windows File Explorer. You need to create a folder with the name chrome in this folder (name is all lowercase). In the chrome folder you need to create a text file with the name userChrome.css (name is case sensitive). In this userChrome.css text file you paste the text posted.

In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt file extension and you end up with a file named userChrome.css.txt. To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as".

You need to close and restart Firefox when you create or modify the userChrome.css file.