desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Closing last tab doesn't close the broswer window

Open umeshn1 opened this issue 2 years ago • 18 comments

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?

Closing last tab doesn't close the browser window.

Reproducible?

  • [X] I have checked that this issue cannot be reproduced on Mozilla Firefox.

Version

1.0.1-a.17

What platform are you seeing the problem on?

Linux

Relevant log output

No response

umeshn1 avatar Nov 01 '24 11:11 umeshn1

This is intended behavior.

wex288 avatar Nov 01 '24 12:11 wex288

Is it possible to disable it?

ur-fault avatar Nov 01 '24 13:11 ur-fault

I like that behavior.

Contade avatar Nov 01 '24 14:11 Contade

Is it possible to disable it?

You can go to about:config and set the value of browser.tabs.closeWindowWithLastTab to true

ander-710 avatar Nov 01 '24 15:11 ander-710

browser.tabs.closeWindowWithLastTab has no effect. Closing the last tab doesn't close the browser window whether browser.tabs.closeWindowWithLastTab is true or false.

bthornton191 avatar Nov 01 '24 16:11 bthornton191

came in here looking for this issue, thank goodness I'm not crazy.

This is intended behavior.

there is no way. if it is, there should probably be a setting for it. On vanilla Firefox, the default behavior is to close the window

314parley avatar Nov 01 '24 16:11 314parley

This is intended behavior.

my installation didn't start doing this before the latest update. if it is a feature, it must have gotten automatically turned on

JackDyre avatar Nov 02 '24 03:11 JackDyre

If you're running multi-window of any browser (FF, Chromium, Safari) and close the final tab of a window, it typically closes the window too; I was expecting the same behavior here.

BiosPlus avatar Nov 02 '24 09:11 BiosPlus

If you're running multi-window of any browser (FF, Chromium, Safari) and close the final tab of a window, it typically closes the window too; I was expecting the same behavior here.

That's right, but case of Zen we have Workspaces. After closing your sites in one Workspace, you may very well want to switch to another Workspace. If the window would close when there's nothing on the particular Workspace, you'd have to click back on the app to bring it back into focus, and then switch to the next Workspace you wanted to.

The way it is now, basically the browser is waiting for a conscious decision of the user when he/she wants to close the browser window.

wex288 avatar Nov 02 '24 11:11 wex288

But still, wouldn't it be better to honor the user's settings, particularly in the about:config ?

I understand the point with workspaces, but as for me, I'm not using them yet, and would like behavior similar to other browsers.

ur-fault avatar Nov 04 '24 09:11 ur-fault

I'm also having this issue, and find it very unintuitive to not have the window close when I close the last tab. my about:config also has close window with last tab set to true.

KonoTyran avatar Nov 05 '24 19:11 KonoTyran

Maybe if the user only has one workspace it would be worth setting the behaviour to close the window? I can never really see myself using the workspace functionality.

BiosPlus avatar Nov 07 '24 04:11 BiosPlus

If you do not intend to use workspaces, you can disable it in settings and this should not happen. Reopen if this still happens after disabling workspaces.

RayZ3R0 avatar Nov 07 '24 12:11 RayZ3R0

This still happens when I have a pinned tab, even though I have disabled workspaces.

gaardhus avatar Nov 11 '24 13:11 gaardhus

Now that workspaces are default and core to the browser, this should definitely be addressed.

clembu avatar Jan 10 '25 22:01 clembu

# Potentially Off-Topic The current behavior (v1.6b) doesn't align with the arguments provided in this thread as I understand them, even for workspace users.

## Why?

  1. do not have any workspaces configured
  2. open two browser windows with one tab each (both will occupy the 'default workspace' now)
  3. hit [Ctrl + w] or your configured equivalent in either window

### Actual result: Zen replaces your tab with a new tab; both windows stay open.

### Expected result: The interacted with window closes because there is still another window of the same workspace open; one window remains.

So this seems somewhat broken even for users actually utilizing workspaces. Though it might be considered a separate issue since it is specifically about multiple windows of the same workspace and not about any window in general.


# Completely on topic v1.6b goes against my muscle-memory for how to interact with ANY application. Zen is the only application that I am aware of reverting user instructions to close a tab instead of adhering to it.

IMO, the current behavior makes no sense if a user has only a single workspace (usually the default workspace) configured either way and should be reconsidered.

If there is some use case I am not aware of that would make that behavior still desirable even with only a single workspace configured, I feel browser.tabs.closeWindowWithLastTab in about:config should override the current behavior going forward, now that workspaces cannot be disabled anymore.

Gambloide avatar Jan 11 '25 13:01 Gambloide

Please do vote here https://www.reddit.com/r/zen_browser/comments/1hyuao1/discussion_about_how_we_handle_workspaces/

mr-cheffy avatar Jan 11 '25 13:01 mr-cheffy

Even if you decide to keep the current behavior by default, that is of opening a new tab again in the current workspace when the last tab is closed no matter if there's another workspace or not, I think having the option to override it with browser.tabs.closeWindowWithLastTab for people not happy with this choice wouldn't be an issue. Currently, being forced to adhere to this way of managing the last tab without the possibility to do anything about it, is, I believe, annoying for a lot of users.

CypElf avatar Mar 10 '25 10:03 CypElf