I have only one tab open in Firefox (the page that's showing this question, for example). I'm using (what I think is) a stock 3.6.6 install, and there's no close button on that one tab. Here's the current behavior when I middle-click on that tab:

  • nothing happens

Here's the behavior I want when I middle-click on that tab:

  • web page disappears
  • same tab remains, but it's now blank

How can I make Firefox behave this way? I've had it before, but I don't know if it was an addon (likely TabMix Plus) or a tweak I made to the stock browser?

EDIT: I really want this without installing addons, but I accept that an addon may be required.

link|improve this question

78% accept rate
feedback

2 Answers

up vote 1 down vote accepted

In about:config, set

browser.tabs.closeWindowWithLastTab

to false.

Edit: This works on my iMac; doesn't on my macbook. No idea what's different, YMMV.

link|improve this answer
This does not put a close button on the tab. It does allow me to close the tab w/ a middle click (which flashes a close button on the tab, for an instant, as it's closing). When the tab closes, a blank tab immediately replaces it. The browser does not close. That'll do until I can get TabMixPlus. – lance Jul 21 '10 at 21:23
In Preferences | Tabs, unticking "Always show the tab bar" will allow that only remaining tab to actually go away. Close-buttons are controlled by another about:config variable, "browser.tabs.closeButtons". This page in Mozilla's Knowlegebase describes the possible values and their behaviors: kb.mozillazine.org/Browser.tabs.closeButtons . – JRobert Jul 21 '10 at 22:20
feedback

Tab mix plus does this, but you have to do a little tweak to it go to Tab Mix Plus Options -> Events -> Tab Closing -> Closing Last tab, and check "Do not close window when closing last tab".

EDIT: There is no way to do this without tab mix plus.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.