zen-browser / desktop

🌀 Experience tranquillity while browsing the web without people tracking you!
https://zen-browser.app
Mozilla Public License 2.0
17.63k stars 421 forks source link

2 new tabs created when last tab closed #1332

Closed Waradu closed 1 week ago

Waradu commented 2 months ago

Captchas

What happened?

So I have "browser.tabs.closeWindowWithLastTab" disabled but if i close the last tab 2 new tabs are created instead of 1.

this is how it looks like after I closed the last tab: image

this is how the same thing looks in firefox: image

ofc its not a big thing but it annoys me.

Reproducible?

Version

1.0.0-a.37

What platform are you seeing the problem on?

Windows

Relevant log output

No response

chriskirknielsen commented 2 months ago

This is an especially common scenario in a private window if you close all tabs. It'll close one, show two, close them all again, you get one, close that, you get two… and it cycles that way. Maybe there could be an option "Close private window when all private tabs are closed"?

ahmaadaziz commented 1 month ago

+1

gabors0 commented 1 month ago

The same is happening to me but it reopens 3 tabs, not 2? Also I'm not in a private window but the same thing happens there too.

berezki commented 1 month ago

Got the same issue, 3 new tabs are appeared when closing last one.

andersmmg commented 1 month ago

For me it usually opens 2, but sometimes 3. Haven't found any pattern yet as to when it does which, but it's very odd. I don't have this issue on the latest Firefox.

bedxnta commented 1 month ago

video preview of this bug:

https://github.com/user-attachments/assets/470c99ea-41b8-4d98-94bd-49d5a2f06306

bedxnta commented 1 month ago

UPDATE: It now opens 2 windows instead of 3 after the new update: 1.0.1-a (64-bit)

https://github.com/user-attachments/assets/3feef4a0-3dc1-4537-a3ba-4220d81c2550

BVengo commented 1 month ago

Came for the same issue. Someone else has also listed it here: https://github.com/zen-browser/desktop/issues/1036

RayZ3R0 commented 1 week ago

Does this still happen on latest version? (a.14 as of this comment)

gabors0 commented 1 week ago

Does this still happen on latest version? (a.14 as of this comment)

No, seems to be fixed for me

RayZ3R0 commented 1 week ago

Alright I'll be closing this issue then. Thanks for reporting