desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Empty "new tab" incorrectly created when closing existing tab

Open neogeographica opened this issue 2 years ago • 22 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?

Only reproducible on Linux apparently:

  1. Workspaces feature must be enabled in preferences.
  2. Right-click on any link or bookmark and open its page (let's call it foo.com) in a new window.
  3. A new window is created with one tab, showing foo.com.
  4. In that foo.com tab, middle click on one or more links in the displayed page to open those links as tabs "in the background".
  5. Remain on the foo.com tab... don't switch to any of the other tabs yet.
  6. In the tab sidebar click the "x" on the foo.com tab to close it.
  7. A new empty "New Tab" tab will be created at the bottom of the tab list.

What I would expect is for that new tab to NOT be created.

I hit this with some regularity since this is a not-uncommon browsing pattern for me: open some homepage or other kind of "top-level page" in a new window, while reading it middle-click on various links that I want to check out when I am done with the top-level page, then close the top-level page.

Note: The new tab is not created when I close the foo.com tab, if one of the following is true:

  • If in step 0, the workspaces feature is disabled.
  • Or if on step 4 I instead look at (activate / switch-to) at least one of the other opened tabs before closing the foo.com tab.

Reproducible?

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

Version

1.0.1-a

What platform are you seeing the problem on?

Linux

Relevant log output

No response

neogeographica avatar Sep 23 '24 14:09 neogeographica

Also FWIW, I have two workspaces configured. I haven't tried replicating this behavior when only having a single workspace.

Not able to replicate this on macOS, only on Linux (Mutter/Gnome in Pop!_OS 22.04).

neogeographica avatar Sep 23 '24 17:09 neogeographica

Unable to replicate this on Windows version either.

onthejobtraining avatar Sep 24 '24 05:09 onthejobtraining

Tested it with a single workspace now, same behavior (on Linux).

However, if I completely disable workspaces in the preferences, the bad behavior no longer happens. Updated the initial post above.

neogeographica avatar Sep 26 '24 14:09 neogeographica

Could not replicate on latest version (1.0.1-a.16 as of this comment), are you still getting this issue?

salamijason avatar Oct 31 '24 18:10 salamijason

Could replicate this issue with a single workspace in a single Zen window.

stilic avatar Oct 31 '24 22:10 stilic

Really bizarre, could you send a screen recording so we can verify what exactly is happening?

salamijason avatar Nov 03 '24 09:11 salamijason

Really bizarre, could you send a screen recording so we can verify what exactly is happening?

I close the only tab I have and it's opening a new tab instead of closing the window itself. It only happens when the workspaces feature is enabled.

stilic avatar Nov 03 '24 14:11 stilic

Tried to replicate on windows again with and without workspaces enabled and still couldn't get it. Will verify if this is only a Linux bug.

salamijason avatar Nov 05 '24 14:11 salamijason

A recording would really help bro

salamijason avatar Nov 05 '24 14:11 salamijason

A recording would really help bro

I described the behavior already. It also happens when closing the only tab with Ctrl-W.

stilic avatar Nov 05 '24 17:11 stilic

Yes, I understand you've described the behavior already but a video will be miles better.

To verify whether this is an issue, we'd have to be able to recreate and diagnose the bug.

salamijason avatar Nov 07 '24 07:11 salamijason

Yes, I understand you've described the behavior already but a video will be miles better.

To verify whether this is an issue, we'd have to be able to recreate and diagnose the bug.

I explained how to reproduce the issue. Do you really want me to record a video? Did you tried what I described?

stilic avatar Nov 07 '24 08:11 stilic

I explained how to reproduce the issue. Do you really want me to record a video? Did you tried what I described?

Yes, they really want you to record a video. It shouldn't be much difficult. @salamijason asked for a screen recording of the bug from you, not a bathroom selfie. You could have saved a lot of your time and theirs by simply sharing a screen recording instead of repeating the same thing under every post.

onthejobtraining avatar Nov 08 '24 08:11 onthejobtraining

Tried to replicate on windows again with and without workspaces enabled and still couldn't get it. Will verify if this is only a Linux bug.

@Stilic As seen from my previous responses, I have already tried to replicate it multiple times but was unable to. Thus why I asked for a recording.

We needa figure out if it's a os specific bug, profile bug, or even a bug at all and a recording would be the best and most straight forward way to convey the issue you're facing.

salamijason avatar Nov 08 '24 09:11 salamijason

https://github.com/user-attachments/assets/b2f6bba0-dcf4-42ed-94f6-26a27fb5ef71

stilic avatar Nov 08 '24 23:11 stilic

@Stilic The behavior in the video is intentional. There needs to be at least one tab in a workspace.

But, the video you sent does not seem to match up with your initial step-by-step recollection of the bug.

Workspaces feature must be enabled in preferences. Right-click on any link or bookmark and open its page (let's call it foo.com) in a new window. A new window is created with one tab, showing foo.com. In that foo.com tab, middle click on one or more links in the displayed page to open those links as tabs "in the background". Remain on the foo.com tab... don't switch to any of the other tabs yet. In the tab sidebar click the "x" on the foo.com tab to close it. A new empty "New Tab" tab will be created at the bottom of the tab list.

Could you please verify which is the bug you're talking about?

salamijason avatar Nov 10 '24 03:11 salamijason

@Stilic The behavior in the video is intentional. There needs to be at least one tab in a workspace.

But, the video you sent does not seem to match up with your initial step-by-step recollection of the bug.

Workspaces feature must be enabled in preferences. Right-click on any link or bookmark and open its page (let's call it foo.com) in a new window. A new window is created with one tab, showing foo.com. In that foo.com tab, middle click on one or more links in the displayed page to open those links as tabs "in the background". Remain on the foo.com tab... don't switch to any of the other tabs yet. In the tab sidebar click the "x" on the foo.com tab to close it. A new empty "New Tab" tab will be created at the bottom of the tab list.

Could you please verify which is the bug you're talking about?

It's not the same bug. And shouldn't it close the browser anyway if you close every tab in the default workspace?

stilic avatar Nov 10 '24 11:11 stilic

  1. are you still getting the bug you mentioned in your original post?

  2. Nope, dev said intentional behavior is to not close the window.

salamijason avatar Nov 10 '24 13:11 salamijason

you can also check these image image

salamijason avatar Nov 10 '24 13:11 salamijason