API to close & save group
Categories
(Firefox :: Tabbed Browser, task, P1)
Tracking
()
People
(Reporter: dao, Assigned: dwalker)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fidefe-tabgrps-tabbrowser])
Updated•7 months ago
|
Assignee | ||
Updated•6 months ago
|
Assignee | ||
Updated•6 months ago
|
Reporter | ||
Updated•6 months ago
|
Updated•6 months ago
|
Reporter | ||
Updated•6 months ago
|
Updated•6 months ago
|
Reporter | ||
Updated•5 months ago
|
Comment 1•5 months ago
|
||
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.
Reporter | ||
Comment 2•5 months ago
|
||
(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.
Reporter | ||
Updated•4 months ago
|
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 3•4 months ago
|
||
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.
Assignee | ||
Comment 4•3 months ago
|
||
Group saving was already implemented in SessionStore; behavior has been wired up in the referenced bug
Description
•