Closed Bug 1933112 Opened 3 months ago Closed 13 days ago

Do not restore saved tab groups in private windows

Categories

(Firefox :: Session Restore, task, P1)

task
Points:
2

Tracking

()

RESOLVED FIXED
137 Branch
Tracking Status
firefox137 --- fixed

People

(Reporter: sthompson, Assigned: jswinarton)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fidefe-tabgrps-sessionstore] )

Attachments

(1 file)

If the user has a saved tab group in a normal window and goes to a new private window, I guess I could see the use case for retrieving the saved tab group from there. But I don't think it would work well because then the saved tab group would no longer be in the global session list of saved tab groups accessible from the normal window. If you close the private window, the tab group should not be automatically saved. Explicitly saving a tab group has the potential to store information beyond the lifetime of the private window.

The result of all of this suggests to me that we should

  1. not show saved tab groups in private windows in any context
  2. not show menu options that allow saving tab groups when in a private window
  3. suppress any other mechanisms (like auto-saving tab groups in a window on window close) that would result in a tab group being saved from a private window
Whiteboard: [fidefe-tabgrps-sessionstore]
Points: --- → 1
Priority: -- → P3
Blocks: 1908448

Adding another point here as we'll probably want to add a test for this too.

Points: 1 → 2

https://phabricator.services.mozilla.com/D230409#7970819 suggests we can close this now, but we probably still need to add tests?

Depends on: 1933744
Flags: needinfo?(jswinarton)
Assignee: nobody → jswinarton
Flags: needinfo?(jswinarton)
Depends on: 1921802
Priority: P3 → P1

(In reply to Stephen Thompson [:sthompson] from comment #0)

Explicitly saving a tab group has the potential to store information beyond the lifetime of the private window.

This is true for adding a bookmark from a private window as well, although that's only URLs and titles, whereas we store more information with groups.

The result of all of this suggests to me that we should

  1. not show saved tab groups in private windows in any context

Agreed, given that after being open in a private window, they wouldn't get auto-saved when closing that window.

  1. not show menu options that allow saving tab groups when in a private window

This is a tough one. Given how we handle bookmarking in private windows, I tend to think it would in principle make sense to allow users to save and close groups from private windows. However, it might be confusing to then be unable to find a group right after saving it due saved groups not being offered in private windows (point 1 above). This problem doesn't exist for bookmarks, since we can surface those in private windows without the risk of losing them when closing the window.

  1. suppress any other mechanisms (like auto-saving tab groups in a window on window close) that would result in a tab group being saved from a private window

Agreed.

Summary: Do not save or restore saved tab groups in private windows → Do not restore saved tab groups in private windows
Flags: needinfo?(ssmagula)
Flags: needinfo?(amlee)
  1. not show menu options that allow saving tab groups when in a private window(In reply to Dão Gottwald [:dao] from comment #3)

(In reply to Stephen Thompson [:sthompson] from comment #0)

Explicitly saving a tab group has the potential to store information beyond the lifetime of the private window.

This is true for adding a bookmark from a private window as well, although that's only URLs and titles, whereas we store more information with groups.

The result of all of this suggests to me that we should

  1. not show saved tab groups in private windows in any context

Agreed, given that after being open in a private window, they wouldn't get auto-saved when closing that window.

  1. not show menu options that allow saving tab groups when in a private window

This is a tough one. Given how we handle bookmarking in private windows, I tend to think it would in principle make sense to allow users to save and close groups from private windows. However, it might be confusing to then be unable to find a group right after saving it due saved groups not being offered in private windows (point 1 above). This problem doesn't exist for bookmarks, since we can surface those in private windows without the risk of losing them when closing the window.

  1. suppress any other mechanisms (like auto-saving tab groups in a window on window close) that would result in a tab group being saved from a private window

Agreed.

"2. not show menu options that allow saving tab groups when in a private window"

I agree and this was the in the original spec for private windows
https://www.figma.com/design/f6J2lH6XDxLxyzOLr2E8oE/Tab-Grouping-Spec?node-id=9545-332596&t=fypdPh01LsaYUPYY-1

In private windows, there would not be a "tab groups" section in the TOM menu (this is because all items there represent saved tab groups). We will display the tab group in the opened tabs section below it. If a user opens a new private window (private window 2) and opens a new tab, they can still right-click to move the tab to a group in private window 1 IF the tab group is currently opened in private window 1.

Flags: needinfo?(amlee)

Amy writes: "In private windows, there would not be a "tab groups" section in the TOM menu (this is because all items there represent saved tab groups). However, there are two classes of group in the TOM that are not "Saved and closed" groups:

  • Groups present in this window (I believe this is still valid in private mode)
  • Groups present in other private windows (I believe this is still valid in private mode)

Here's my understanding: In Private mode the goal is to segregate groups created in regular mode from groups created in any private mode window. When the user closes the private window or restarts, the groups in that private window disappear and do not reappear upon restart.

Flags: needinfo?(ssmagula)
Duplicate of this bug: 1946758
Attachment #9465225 - Attachment description: WIP: Bug 1933112: Tab groups only appear in TOM menus for windows with same privateness → Bug 1933112: Tab groups only appear in TOM menus for windows with same privateness r?dao,dwalker
Pushed by jswinarton@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ea47e677f0c4 Tab groups only appear in TOM menus for windows with same privateness r=dao,tabbrowser-reviewers
Blocks: 1947208
Status: NEW → RESOLVED
Closed: 13 days ago
Resolution: --- → FIXED
Target Milestone: --- → 137 Branch
Duplicate of this bug: 1947208

Hello, Tab Groups saved and closed in normal browsing windows are shown in TOM menu in Private Windows with non-working context menu options (besides Delete Group option) in 137.0a1 (2025-02-18).
Is there another fix coming for this issue or should I log a separate bug?

Flags: needinfo?(sthompson)
Flags: needinfo?(amlee)

This is indeed an issue. Tab groups from a non-private window should never show up in the TOM menu in a private window.

Flags: needinfo?(amlee)
Flags: needinfo?(dao+bmo)

Hi :Gabi and :amylee, I've created a ticket to track this: https://bugzilla.mozilla.org/show_bug.cgi?id=1949544

Flags: needinfo?(sthompson)
Flags: needinfo?(dao+bmo)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: