desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Switching between workspaces causes the focussed tab to be changed

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

I setup 3 workspaces in my profile. Each workspace also has some different tabs as pinned tabs. I don't use Essential tabs since I want each workspace to be "sandboxed" and not share any session info across.

With the above setup, when I am on the 2nd pinned tab in workspace1, and I switch to workspace2 and back again, the tab that has focus in workspace1 is the 1st unpinned tab. I would have expected that the pinned tab should have retained focus in workspace1 (when I switch to wotkspace1 from another workspace)

Reproducible?

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

Version

1.0.1-a.19 (Firefox 132.0.1) (aarch64)

What platform are you seeing the problem on?

macOS - aarch64

Relevant log output

No response

vraravam avatar Nov 17 '24 07:11 vraravam

@vraravam , I am also facing the same issue in Zen browser. This should not be the expected behavior while switching workspace.

Platform: Ubuntu 22.04 LTS

nijin26 avatar Nov 20 '24 08:11 nijin26

I also have the same issue on windows 11.

This seems to have been fixed in the latest twilight build (t5). But, when starting Zen for the first time after quitting, it doesn't seem to remember the tab that had the last focus for each workspace. Thus, it always opens the first unpinned tab (and if no unpinned was present, it opens a new tab).

vraravam avatar Dec 23 '24 16:12 vraravam

Hi, @vraravam. I'm Dosu, and I'm helping the desktop team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • Original issue: Focus shifts from a pinned tab to the first unpinned tab when switching workspaces.
  • Affected platforms: macOS, Ubuntu 22.04 LTS, and Windows 11.
  • Resolved in the latest twilight build (t5) for the focus shift issue.
  • Remaining issue: Browser does not remember the last focused tab upon restarting.

Next Steps:

  • Please confirm if the issue of not remembering the last focused tab is still relevant in the latest version of the desktop repository.
  • If no further updates are provided, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Jan 23 '25 16:01 dosubot[bot]

yes, this is still relevant in the latest twilight build: 1.7.2t (Firefox 134.0.2) (2025-01-22) (aarch64)

vraravam avatar Jan 23 '25 16:01 vraravam

@mr-cheff, the user has confirmed that the issue of the browser not remembering the last focused tab is still relevant in the latest twilight build (1.7.2t). Could you please assist them with this?

dosubot[bot] avatar Jan 23 '25 16:01 dosubot[bot]

Running Beta (1.7.6b). This is still relevant. It happens even without per-workspace pinned tabs too.

Zen can remember the last tab when I do:

  1. Having 2 tabs on workspace 1
  2. Switching to workspace 2 manually
  3. Going back to workspace 1 Zen remembers the tab I was on before

But I can reproduce the issue consistently by doing:

  1. Having 2 tabs on workspace 1
  2. Click a link that changes my workspace automatically with the option "Switch to workspace where container is set as default when opening container tabs" enabled
  3. Going back to workspace 1 Zen does not remember and throws me to the first tab at the top of the list regardless of where I was before

Feinzer avatar Feb 08 '25 13:02 Feinzer

Ok I believe I know what's happening.

If I have two workspaces and open a tab that will switch to workspace 2, said tab actually opens for a second on workspace 1, closes itself and opens on the appropriate workspace 2. Causing Zen to remember the tab that got closed before switching to workspace 2.

Feinzer avatar Feb 09 '25 06:02 Feinzer

Hi, @vraravam. I'm Dosu, and I'm helping the desktop team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • The issue involves a focus shift from a pinned tab to the first unpinned tab when switching workspaces.
  • Affects macOS, Ubuntu 22.04 LTS, and Windows 11.
  • The focus shift issue was resolved in the latest twilight build (t5).
  • The browser still does not remember the last focused tab upon restarting.
  • @Feinzer provided additional insights, and @mr-cheff has been asked to assist further.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the desktop repository by commenting here.
  • If there is no further activity, the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Mar 13 '25 16:03 dosubot[bot]

yes - this issue is still persistent as of the latest twilight build (1.9.1t (Firefox 136.0.1) (2025-03-11) (aarch64))

vraravam avatar Mar 13 '25 18:03 vraravam

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=Switching%20between%20workspaces%20causes%20the%20focussed%20tab%20to%20be%20changed%0A

mr-cheffy avatar Mar 29 '25 15:03 mr-cheffy