Firefox is displaying a close button on every open tab by default. The active tab displays that button in red colors while the rest displays a gray button instead to distinguish active and inactive tabs.
The close button adds to the length of tabs which may be a thorn in the eye of users who like to optimize Firefox menus to save space on the screen. By removing close buttons from all tabs, it is possible to display more visible tabs at the same time as you save a lot of space doing so.
There is also the kind of user who likes to use the keyboard to close tabs instead of clicking on that button. The keyboard shortcut [CTRL W] will close the active tab as long as Firefox is the active window. That's convenient and makes the close button more or less superfluous if you prefer to use the keyboard.
There is naturally also the option to right-click on tabs to close them.
Another problem that arises when displaying close buttons on all tabs is that the tab size changes dynamically. This becomes apparent when you open many tabs. If you start closing tabs you will sooner or later notice that the close button shifted because of changed tab sizes (Firefox uses dynamic tab sizes depending on the number of open tabs and the width of the browser window)
But what are the options that the Firefox developers have implemented in the web browser? The parameter [browser.tabs.closeButtons] in [about:config] handles the close button in Firefox. Just enter about:config into the browser's address bar, say that you will be careful if you see the warning notification, and enter the parameter into the search form on the page.
Keyboard junkies will probably set the value to 2 to get rid of all close buttons. Users who regularly open many tabs will probably set it to 3 to be able to access the close button in the same place.
Update: Please note that Mozilla has removed the preference from Firefox 31. You can check your version of the browser by loading about:support in the address bar. You can get it back by installing add-ons such as Classic Theme Restorer.Advertisement
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.