Closed Bug 1908409 Opened 7 months ago Closed 3 months ago

API to close & save group

Categories

(Firefox :: Tabbed Browser, task, P1)

task
Points:
5

Tracking

()

RESOLVED DUPLICATE of bug 1923652

People

(Reporter: dao, Assigned: dwalker)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-tabgrps-tabbrowser])

Assignee: nobody → dwalker
Assignee: dwalker → nobody
Depends on: 1908423
Priority: -- → P3
Assignee: nobody → jswinarton
Summary: API to close group → API to close & save group
Assignee: jswinarton → nobody
Priority: P3 → P2

https://bugzilla.mozilla.org/show_bug.cgi?id=1908411 created an API to remove a tab group https://searchfox.org/mozilla-central/source/browser/components/tabbrowser/content/tabbrowser.js#2969-2974

Since tab groups are always going to be "saved," I don't think we need a new API method. Do we?

It is possible that the current implementation (call removeTabs() on all tabs in the group, implicitly removing the group with the closure of the last tab in the group) may not interact well with our goals for saving closed groups, e.g https://bugzilla.mozilla.org/show_bug.cgi?id=1908422. But if that is the case, then I would recommend that we close this bug and track any necessary changes for session restore purposes in the session restore component.

(In reply to Stephen Thompson from comment #1)

https://bugzilla.mozilla.org/show_bug.cgi?id=1908411 created an API to remove a tab group https://searchfox.org/mozilla-central/source/browser/components/tabbrowser/content/tabbrowser.js#2969-2974

Since tab groups are always going to be "saved," I don't think we need a new API method. Do we?

A group can be deleted, in which case it won't be saved (only temporarily for the "recently closed" menu). So yeah, we need two methods here on the tabbrowser side, that in some way communicate to sessionstore what to do with the group.

Blocks: 1923652
Priority: P2 → P1
Assignee: nobody → dwalker

Noting a comment from a different patch here about implementing a _LAST_ACTION_CLOSED_TAB_GROUP; I think it makes sense to include that here.

Blocks: 1921802

Group saving was already implemented in SessionStore; behavior has been wired up in the referenced bug

Status: NEW → RESOLVED
Closed: 3 months ago
Duplicate of bug: 1923652
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.