Help - Search - Members - Calendar
Full Version: [fix] Close Button Missing From Firefox 3.5
Darkside_RG > Technical Discussions > Guides/How To > General
clyde4210
A lot of firefox users will notice there is no X button to close the first tab in Firefox 3.5. without opening a new tab. Below is the fix to return the X button.

First go here about:config

Find:
CODE
browser.tabs.closeWindowWithLastTab

Right click selecting toggle, this will set it to false which is what we want.

Now go to your profile folder you can just paste this into run. %AppData%\Mozilla\Firefox\Profiles\

Once open navigate to the Chrome folder and find userChrome.css.

If you do not have one, you can rename userChrome-example.css and use it.

Now open that file with your favorite editor.

Paste this code at the bottom.

CODE
/* Add tab-close-button to last tab*/
.tabbrowser-tabs[closebuttons="alltabs"] > .tabbrowser-tab > .tab-close-button {display: -moz-box!important;
}
.tabbrowser-tabs:not([closebuttons="noclose"]):not([closebuttons="closeatend"]) > .tabbrowser-tab[selected="true"] > .tab-close-button {display: -moz-box !important;}


Save on exist and restart Firefox.

You will now have your x button back were you will be able to close the first tab without having to open a new tab.
Sp4
Thanks Clyde4210.

Not sure how long this will stay relevant but here's hoping that the Moz dev team sort it out
clyde4210
They don't plan to fix it as it's not a mistake. I'm not sure why they felt it was better but anyways.

The first part of the code prevents the entire browser from closing when you close the last tab by way of right clicking.

The second part of the code actually adds an x so that you can close the last tab without right clicking.

Your welcome.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.