Closed Bug 1833522 Opened 3 years ago Closed 2 years ago

Recently-closed tabs lists should include closed tabs from recently closed windows

Categories

(Firefox :: Session Restore, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: sfoster, Assigned: sfoster)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-firefox-view] )

Attachments

(2 files)

When we are building the list of recently closed tabs for firefox view and the history menus, it should include the closed tab lists from recently closed windows. These are not the tabs which were open at the time the window was closed - which is bug 1831229

Assignee: nobody → sfoster
Status: NEW → ASSIGNED
Depends on: 1842895

:robwu, I'd like to preemptively de-couple this bug from any discussion of extension API changes by again avoiding any change to what the session API does and returns in the patch I'm developing for this bug. When that lands, it will introduce a gap between the behavior in the browser UI - in terms of what the recently-closed tabs menus show vs what sessions.getRecentlyClosed returns. If we break that out into its own bug we can discuss if or when we want to close that gap to enable extension developers to also retrieve and restore closed tabs from closed windows. Does that sounds like a reasonable plan? We'll still need to watch out for unintentional regressions from the patch I land here of course.

Flags: needinfo?(rob)

(In reply to Sam Foster [:sfoster] (he/him) from comment #1)

:robwu, I'd like to preemptively de-couple this bug from any discussion of extension API changes by again avoiding any change to what the session API does and returns in the patch I'm developing for this bug. When that lands, it will introduce a gap between the behavior in the browser UI - in terms of what the recently-closed tabs menus show vs what sessions.getRecentlyClosed returns. If we break that out into its own bug we can discuss if or when we want to close that gap to enable extension developers to also retrieve and restore closed tabs from closed windows. Does that sounds like a reasonable plan? We'll still need to watch out for unintentional regressions from the patch I land here of course.

That sounds like a very reasonable path forwards. The API does not need to change; extensions can already query all recently closed tabs (including inside closed windows) through the API. If there is ever a desire to change the API, make sure to update bug 1836877 (for dev outreach).

Flags: needinfo?(rob)
Depends on: 1842610
Depends on: 1845836
Depends on: 1847617
Severity: -- → N/A
Priority: -- → P1
Blocks: 1850630
Attachment #9349316 - Attachment description: WIP: Bug 1833522 - Add closed tabs from closed windows to the history:recently-closed tab menus. r?dao! → Bug 1833522 - Add closed tabs from closed windows to the history:recently-closed tab menus. r?dao!
  • Move closeTab and openAndCloseTab to the helpers module and replace a couple of uses
  • Move waitForBrowserState/promiseBrowserState and replace a couple of uses
Pushed by sfoster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fb1598dc258f Share some of sessionstore's test helpers for use in recently-closed tab tests. r=sclements,fxview-reviewers,sessionstore-reviewers https://hg.mozilla.org/integration/autoland/rev/feb42cf3b6e1 Add closed tabs from closed windows to the history:recently-closed tab menus. r=dao,extension-reviewers,sessionstore-reviewers,sclements,robwu,Standard8,fxview-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
Summary: Bug 1831229 - recently-closed tabs lists should include closed tabs from recently closed windows → Recently-closed tabs lists should include closed tabs from recently closed windows
Duplicate of this bug: 1828742
Regressions: 1931330
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: