Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

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

Learn More

How to disable double-click for new tab?

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

more options

Since updating Firefox, double-clicking in the title bar creates new tabs instead of scaling the window. How do I disable this double-click-to-create-new-tab feature? I checked the browser.tabs.* configuration options in about:config and there does not appear to be an option for this change.

Since updating Firefox, double-clicking in the title bar creates new tabs instead of scaling the window. How do I disable this double-click-to-create-new-tab feature? I checked the browser.tabs.* configuration options in about:config and there does not appear to be an option for this change.

被采纳的解决方案

The CSS code for userChrome.css I posted above should disable the feature to open a new tab if you double-click in free space on the Tab bar, so you may want to give that a try.


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 plain text file with the name userChrome.css (name is case sensitive). In this userChrome.css text file you paste the text posted. On Mac you can use the TextEdit utility to create the userChrome.css file as a plain text file.

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 (Quit/Exit) and restart Firefox when you create or modify the userChrome.css file.

See also:

In Firefox 69 and later you need to set this pref to true on the about:config page to enable userChrome.css and userContent.css in the chrome folder.

  • toolkit.legacyUserProfileCustomizations.stylesheets = true

See:

定位到答案原位置 👍 1

所有回复 (4)

more options

hello sam


You can check for problems with the localstore.rdf file.

   http://kb.mozillazine.org/Corrupt_localstore.rdf
more options

You can possibly disable placing the tabs in the title bar via the customize window.


You can also try to add this code to userChrome.css.


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

/* TAB - Pointer Events [74] */
#tabbrowser-arrowscrollbox {pointer-events: none}
toolbarbutton#scrollbutton-up, toolbarbutton#scrollbutton-down {pointer-events:auto}
.tabbrowser-tab, #tabs-newtab-button, .tabs-newtab-button {pointer-events: auto}
.new-tab-popup, .new-tab-popup > * {pointer-events: auto}  /*container tabs - longpress*/

See also:

more options

There does not appear to be an option to control double-clicking behavior in the Customize windows. I noticed something though: this double-click-for-new-tab-behavior only occurs when browser.tabs.drawInTitlebar is False (the default is True). I had set this to False, as I want to have a titlebar, but this unexpectedly causes the tab area to behavior differently, it causes the tab areas respond to double-clicking by creating new tabs.

more options

选择的解决方案

The CSS code for userChrome.css I posted above should disable the feature to open a new tab if you double-click in free space on the Tab bar, so you may want to give that a try.


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 plain text file with the name userChrome.css (name is case sensitive). In this userChrome.css text file you paste the text posted. On Mac you can use the TextEdit utility to create the userChrome.css file as a plain text file.

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 (Quit/Exit) and restart Firefox when you create or modify the userChrome.css file.

See also:

In Firefox 69 and later you need to set this pref to true on the about:config page to enable userChrome.css and userContent.css in the chrome folder.

  • toolkit.legacyUserProfileCustomizations.stylesheets = true

See: