'Ask before closing multiple tabs' feature does not work as intended.
Captchas
- [x] I have read the instructions.
- [x] I have searched existing issues and avoided creating duplicates.
- [x] I am not filing an enhancement request.
What happened?
This issue arises only when separate browser windows are opened, such as when detaching a tab to create a new browser instance or when launching the browser anew from the executable.
With the 'Ask before closing multiple tabs' feature turned on, and with more than one window (or instance) of the browser opened, closing a window/instance with only one tab opened still invokes the "Close x tabs" dialog when it should just close the window without confirmation.
Particularly, the browser’s confirmation dialog is displaying an incorrect tab count. For example, when only one tab is open, the dialog shows "Close 2 tabs?" and when three tabs are open, it reads "Close 4 tabs?" instead of the expected "Close 3 tabs?". (Perhaps this over-counting might be the issue?)
Expected behavior: The particular Zen browser instance/window should just close when closing with only one tab open as it does for Firefox and other browsers.
Also tested on a fresh install(with the 'Ask before closing multiple tabs' option turned on) of Zen Browser on another PC which exhibited the same issue.
Reproducible?
- [x] I have checked that this issue cannot be reproduced on Mozilla Firefox.
Version
1.8.2b (Firefox 135.0.1) (64-bit)
What platform are you seeing the problem on?
Windows
Relevant log output if applicable
I can confirm this is an issue, Also with this issue if you do have two windows opened and click on the Close and quit notification to close the instance you want closed, It will close both instances of the browser. Which isn't normally what should happen. Only the one browser instance you have opened and want to close should be closed with it's tab/s, While leaving the other instance alone.
With the new update (1.9b), the bug still persists.
I noticed that the "Close multiple?" dialogue always shows one more than the actual amount of tabs, making 2 of one, but also 5 of 4, etc.
And when Zen's feature to replace the newtab page with the URL bar is enabled the bug doesn't happen.
Closing this issue as part of a repo cleanup
Due to technical-debt we had in the past, we are currently clearing out old, duplicate, stale, and non-actionable issues to improve issue tracking and make it easier to focus on fixing real bugs.
If this issue is still relevant, please open a new issue using our updated issue template, which will help us categorize and address it more efficiently.
Thanks for your understanding and for helping us improve the project! 🚀
This issue can be reopened at: https://github.com/zen-browser/desktop/issues/new?template=bug_report.yml&title=%27Ask%20before%20closing%20multiple%20tabs%27%20feature%20does%20not%20work%20as%20intended.%0A