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

搜索 | 用户支持

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

详细了解

How to disable double-click for new tab?

  • 4 个回答
  • 1 人有此问题
  • 190 次查看
  • 最后回复者为 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: