How-To Geek

Get the Close Button Back on the Last Open Tab in Firefox

Frustrated and missing the Close Button on the last open tab in the newer releases of Firefox? Now you can have that wonderful Close Button back with the Last Tab Close Button extension.

Before Last Tab Close Button

Anyone using the newer releases of Firefox will notice that the Close Button has disappeared from the tab if it is the only (or last) one open. Right clicking on the tab will also show that the option to close the tab is grayed out. Very frustrating if this is something that you have been using on a daily basis while browsing. Time to fix that little problem!


After Last Tab Close Button

After you have installed the extension, all that you have to do is enjoy having that Close Button goodness available to you again. Look at that beautiful button!

Note: Right clicking on the tab will show that the close tab option is still grayed out as shown above.



For those people who have been missing this wonderful little feature, this is definitely a “must have” extension!


Download the Last Tab Close Button extension (version 0.2)

Akemi Iwaya is a devoted Mozilla Firefox user who enjoys working with multiple browsers and occasionally dabbling with Linux. She also loves reading fantasy and sci-fi stories as well as playing "old school" role-playing games. You can visit her on Twitter and .

  • Published 07/30/09

Comments (17)

  1. Mifas


  2. Shail

    Works Very Well. Thank Y0U!

  3. Philipp

    Another way is:
    – Set browser.tabs.closeWindowWithLastTab to False
    – Add the following Code to UserChrome.css:

    .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;

    Saves you another extension ;)


  4. Firas

    Great :-)
    Thank you angel

  5. Ben

    Thank you so much!

  6. David

    If you’re interested in even more tab options, Tab Mix Plus is a great extension. Unfortunately, the version listed on Mozilla Add-Ons is not compatible with Firefox 3.5.1, but if you do a Google search or look through the reviews, you can find a compatible version from the add-on’s author. I’ve been using it and have not encountered any problems. It also gives you the close button on the last tab as well as the option to right-click on the tab and choose close.

  7. Starkiller

    oh god thank you, I was missing this like a kidney.

  8. Dale

    Am I missing something here? What are you left with when you have no more open tabs? Why not just close the browser?

  9. Steve

    I’m with Dale, why would you want to close a tab if its the only one left?

  10. Computer

    Thanks for the how-to, but I really didn’t use the close button on the tab. I just clicked the close button at the top right corner of the browser.

  11. Cory

    It mainly allows you to have a clean browser so that you can minimize the window/hide the application instead of having to launch it continuously after you are done with the last tab at that time.

  12. ScottW

    I have my FF configured a little differently. In Tools -> Options -> Tabs, I have the option “Always show the tab bar” disabled. So when I get down to the last “tab”, it’s not a tab but the whole window. I also have my home page set to “about:blank”, so I can “close” that last page by clicking the home button (or with Alt+Home for you keyboard ninjas). The result is that the FF window remains open, blank and not pointing to any website.

    I’m not saying this way is better or has any specific advantages — it’s just what I am used to. So I certainly understand the desire to restore a function that was removed if it is one that you used a lot!

  13. Santo

    How did you get that colorful background above the tab? It looks nice. It is an add-on? Please do share..

  14. Asian Angel

    @Santo – That background is from using the Personas Extension. ^__^

  15. bilglas

    Aw, THANKS! It’s been driving me nuts. The perfect fix!

  16. Santo

    @Asian Angel —— Thank you very much!!

    Instead of searching in HTW I have been searching all over the Internet :)

  17. on

    To the author:
    Thank you!

    @ Philipp!
    Thank you! It’s a two step process. Modify the about:config and the .css file. I did only step 1 and thought it didn’t work.

More Articles You Might Like

Enter Your Email Here to Get Access for Free:

Go check your email!