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

How to close window only if closing last tab is about:newtab

  • 5 பதிலளிப்புகள்
  • 4 இந்த பிரச்னைகள் உள்ளது
  • 3 views
  • Last reply by cor-el

Is there a way to achieve this behaviour: Let's say I have a last tab left open, for example mozilla.org or any other site. When closing that tab I want firefox to open about:newtab. This can be achieved by setting closeWindowWithLastTab flag in config. But here is the catch when closing that about:newtab I want to close window.

So basically - Close window with last tab only if it is about:newtab. Also I want the close button on last tab to remain there.

P.S. Last tab close button extension did not help.

Is there a way to achieve this behaviour: Let's say I have a last tab left open, for example mozilla.org or any other site. When closing that tab I want firefox to open about:newtab. This can be achieved by setting closeWindowWithLastTab flag in config. But here is the catch when closing that about:newtab I want to close window. So basically - Close window with last tab only if it is about:newtab. Also I want the close button on last tab to remain there. P.S. Last tab close button extension did not help.

All Replies (5)

Have you tried the following about:config tweak?

I dont think you can make that domain specific.

As I mentioned in the post. I have, but as you already pointed out it's not domain specific. Which is exactly my problem. Maybe someone heard of an extension that does that or something?

Oh oops, also see https://addons.mozilla.org/en-US/firefox/addon/last-tab-close-button/?src=ss not sure what youre looking for, but domain based, not there.

Yep, tried that also. did not work. Ok, i think you made it pretty clear that no one made an extension to check domain before closing tab. So... there is no right answer... for now... i hope...