This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Why is CTRL+W is closing whole windows instead of just a single tab?

  • 1 resposta
  • 1 has this problem
  • 1 view
  • Last reply by cor-el

more options

Windows 7 Prof. OS - Firefox 4 Basically, almost *everytime* I try to close just one tab using Ctrl+W, the entire Firefox window closes. That's not right. I keep losing pages I'm on. I have to re-launch Firefox, then go back into history and re-load the pages I was on.

How do I get it to stop?

Windows 7 Prof. OS - Firefox 4 Basically, almost *everytime* I try to close just one tab using Ctrl+W, the entire Firefox window closes. That's not right. I keep losing pages I'm on. I have to re-launch Firefox, then go back into history and re-load the pages I was on. How do I get it to stop?

All Replies (1)

more options

Start Firefox in Diagnose Firefox issues using Troubleshoot Mode to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).

If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.

  • Use "Disable all add-ons" on the Safe mode start window to disable all extensions.
  • Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

In Firefox 4 you can use one of these to start in Safe mode:

  • Help > Restart with Add-ons Disabled
  • Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

Set the pref browser.tabs.closeWindowWithLastTab to false on the about:config page to prevent closing the last tab from closing the browser and make a close button appear if only one tab is open.

To open the about:config page, type about:config in the location (address) bar and press the "Enter" key, just like you type the url of a website to open a website.
If you see a warning then you can confirm that you want to access that page.
You can use the Filter bar at to top of the about:config page to locate a pref more easily.