Floorp-Projects / Floorp

All of source code of version 10 or later of Floorp Browser, the most Advanced and Fastest Firefox derivative 🦊
https://floorp.app
Other
5.73k stars 160 forks source link

[Bug]: Closing the last tab in a workspace opens a tab from another workspace #1233

Closed Korydween closed 3 months ago

Korydween commented 3 months ago

Pre-Submission Checklist

Bug Summary

When several workspaces exist with tabs open, and only one tab remains in the workspace currently in use, closing this tab will open a tab from the other workpace.

Reproduction Steps

  1. Create at least two workspaces
  2. Open several tabs in Workspace 1
  3. Go to Workspace 2
  4. Close all tabs in the Workspace 2
  5. When the last tab is closed, a tab from Workspace 1 is brought to Workspace 2

Expected Behavior

I would expect that a new tab opens in the current workspace when the last tab is closed.

Actual Behavior

When the last tab of the current workspace is closed, Floorp opens a tab from another workspace.

Screenshots

In a new Floorp without any add-on and on a new profile, I created two workspaces: image

The default workspace only have one tab open : image

The other workspace has two tabs open: image

If I click "close tab" on the default workspace, the tab from the other workspace is opened. I would expect a new tab to open: image

If I close again this tab, the other tab from the other workspace opens: image

And the "reddit" tab was also closed in the other workspace: image

I tested and the problem is the same the other way round so it does not depend if Default is empty or the other workspace is empty

Browser Version

11.14.1 (64-bit)

Operating System

Ubuntu 24.04

Additional Context

No response

surapunoyousei commented 3 months ago

Deplicate