Closing last tab no longer opens a new tab.
Preliminary Checks
- [x] I have read and understood the important section above.
- [x] I have searched existing issues and avoided creating duplicates.
- [x] I am not filing an enhancement request.
- [x] I have checked that this issue cannot be reproduced on Mozilla Firefox.
- [x] I have checked that this issue can be reproduced once I removed all my Mods and Custom CSS.
What happened?
Since 1.14.4b, closing the last tab with browser.tabs.closeWindowWithLastTab set to false no longer opens a new tab. Instead, the search bar is focused and only a blank page is visible.
I'm assuming that this is a bug, since this change was not mentioned in the changelog.
Expected behavior
Closing last tab opens a new tab.
Actual behavior
Closing last tab focuses the search bar on a blank page.
Steps to reproduce
On Zen 1.14.4b, set browser.tabs.closeWindowWithLastTab to false and close the last tab in a window.
Screenshots and videos
[!NOTE] I have some custom CSS, hence some browser elements are missing or look different.
Version
1.14.4b
What platform are you seeing the problem on?
Windows - x64
What component is this issue related to?
Tabs
Relevant log output if applicable
I remember a similar situation a few months ago
I'm getting this behavior even with the preference set to true...
I had opened a new issue stating that closing last tab does not close the browser window. I have the closeWindowWithLastTab toggle set to true yet the window just stays blank without closing when the last tab is closed. Looks like this is a similar issue since mine got tagged as a duplicate of this one. i hope the devs come up with a fix or a solution to this. Reinstalling is not helping in this case.
After recent patches the same happens on Linux - Arch. closeWindowWithLastTab set to false seems to work as the browser does not close. But only the blank page is being displayed, not the new tab page. zen.workspaces.open-new-tab-if-last-unpinned-tab-is-closed seems to work but only if I have at least one tab pinned. I pinned 'new tab' as a workaround but I don't want to keep it this way.
Any update on this? It's still happening on 1.17.4b.
Any update on this? It's still happening on 1.17.4b.
I'm on the same version myself, and can confirm this issue still persists. The tabs close themselves but the window doesn't close after closing the last tab, it stays open, blank, without any tabs.
Same here, still happening for me on 1.17.4b. Additionally, when detaching the last tab from a window, the window that the tab is detached from remains open with a blank page instead of closing, which can be annoying if you work with multiple windows often.
Same here, still happening for me on 1.17.4b. Additionally, when detaching the last tab from a window, the window that the tab is detached from remains open with a blank page instead of closing, which can be annoying if you work with multiple windows often.
Can confirm this as an existing issue too. I've tried reinstalling the browser, doing clean reinstalls (deleting residuals after uninstalling), and even a complete clean install of Windows 11 too once. No luck whatsoever.
Same here, still happening for me on 1.17.4b. Additionally, when detaching the last tab from a window, the window that the tab is detached from remains open with a blank page instead of closing, which can be annoying if you work with multiple windows often.
Can confirm this as an existing issue too. I've tried reinstalling the browser, doing clean reinstalls (deleting residuals after uninstalling), and even a complete clean install of Windows 11 once. No luck whatsoever.
Give up, mate, the problem still exists in 1.17.15b. I don't think it will be fixed.
Testing the 2 discussed prefs in the latest Twilight, both are behaving strangely or not at all.
browser.tabs.closeWindowWithLastTab
- Seems to not be considered at all. With the setting false, closing the last tab using ctrl+w still closes the window.
Even with the Zen pref
zen.tabs.close-window-with-emptyset to false as well, the window closes. - However, this only occurs on windows without essentials/pins like the temp space windows that you create by dragging out a tab to create a separate window. In windows with essentials/pins, the window does not close when closing the last normal tab.
- Dragging out the last tab so that no tabs remain does not close the window, regardless of the pref being set true or not.
zen.workspaces.open-new-tab-if-last-unpinned-tab-is-closed
Does not appear to be considered at all. With this set true and the previous pref(s) set false, the window just closes*. Still as mentioned before, dragging out the last tab instead of closing it leaves an empty window. It neither closes nor opens a new tab.
* if it's a temp space window (created by dragging out a tab from another window) without pins/essentials.
Testing the 2 discussed prefs in the latest Twilight, both are behaving strangely or not at all.
browser.tabs.closeWindowWithLastTab
- Seems to not be considered at all. With the setting false, closing the last tab using ctrl+w still closes the window. Even with the Zen pref
zen.tabs.close-window-with-emptyset to false as well, the window closes.- Dragging out the last tab so that no tabs remain does not close the window, regardless of the pref being set true or not.
![]()
zen.workspaces.open-new-tab-if-last-unpinned-tab-is-closedDoes not appear to be considered at all. With this set true and the previous pref(s) set false, the window just closes. Still as mentioned before, dragging out the last tab instead of closing it leaves an empty window. It neither closes nor opens a new tab.
I checked for this myself but in the stable release. This behaviour remains the same. Closing the last tab will not close the window regardless of the mentioned toggles being on or off.
@aditya-chaple Also had a test. It works for me on windows that do not have essentials/pins, but as soon as those are present it doesn't.
@aditya-chaple Also had a test. It works for me on windows that do not have essentials/pins, but as soon as those are present it doesn't.
@Propheticus That's strange. I tested it on windows too, starting without essentials and pins. The behavior did not change from what you described earlier. My test was on the latest 25H2 stable build of windows 11 if that information helps you.
Hi, @Trzynastek. I'm Dosu, and I'm helping the desktop team manage their backlog and am marking this issue as stale.
Issue Summary:
- Since version 1.14.4b, closing the last tab with
browser.tabs.closeWindowWithLastTabset to false no longer opens a new tab but instead focuses a blank page. - Multiple users, including yourself, BowDown097, aditya-chaple, and DariusSlowik, have confirmed the issue persists through version 1.17.4b on Windows and Linux.
- Additional problems occur when detaching the last tab, which leaves a blank window.
- Testing by Propheticus showed inconsistent or non-functional behavior, especially with pinned tabs or essentials.
- The issue remains unresolved and affects user workflow, with some users doubtful about a near-term fix.
What's Next:
- Please let us know if this issue is still relevant with the latest version of the desktop repository by commenting here to keep the discussion open.
- If we don’t hear back within 10 days, this issue will be automatically closed.
Thanks for your understanding and contribution!
still persists
still persists
Can confirm.