Don't Close Firefox when Closing Last Tab

One of the more annoying 'features' of Firefox is when you have only one tab open and you want to clear that tab by pressing Ctrl-W, it closes the entire browser.

There's a workaround, or rather, a configuration option for that.

About:config to the rescue.

  1. Type about:config in the location bar
  2. Click the silly "I'll be careful" button
  3. Paste browser.tabs.closeWindowWithLastTab in the Filter text area
  4. Under Preference Name, right-click browser.tabs.closeWindowWithLastTab
  5. Select Toggle (new value to be false)

That's it.

Enjoy.