Open Bug 1916884 Opened 17 days ago Updated 6 days ago

Restore Last Closed Tab doesn't restore tab in another window if there are no tabs to restore in the current window

Categories

(Firefox :: Session Restore, defect)

Desktop
All
defect

Tracking

()

Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- fix-optional
firefox130 --- wontfix
firefox131 --- fix-optional
firefox132 --- affected

People

(Reporter: tabmix.onemen, Unassigned, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

(In reply to :Gijs from bug 1819675 - comment #40)

All I want Is to point for inconsistency between reopening last closed tab/s with shortcut ctrl-shift-t/cmd-shift-t and the visibility of closed tabs in Recently Closed Tabs.

When window A have no closed tabs, but Window B have closed tabs, in both window Recently Closed Tabs will show closed tabs from window B.
but using ctrl-shift-t/cmd-shift-t in Window A will do nothing.

  1. clear all recent history in window A (so previous session's tabs aren't in closed tabs)
  2. open new window B
  3. open example.com in window B
  4. open about:config in window B
  5. close example.com

Now both window A and window B have one closed tab visible in Recently Closed Tabs
6. ctrl-shift-t/cmd-shift-t - in window A will do nothing.
7. ctrl-shift-t/cmd-shift-t - in window B will do nothing reopen last closed tab.

I find this behavior to be unexpected.
I expects that when browser.sessionstore.closedTabsFromAllWindows is on ctrl-shift-t/cmd-shift-t will undo the last close action in the current session.

lets continue...
8. Now we don't have any closed tabs and Recently Closed Tabs is grayed out in both windows.
9. In window B, close example.com, (window B still have about:config, both windows have Recently Closed Tabs visible)
10. closed window B. (window A, have Recently Closed Tabs and Recently Closed Windows enabled)
11. ctrl-shift-t/cmd-shift-t in window A will restore window B.

In summery, there is different behavior for ctrl-shift-t/cmd-shift-t in window A, in step 6 and step 11.

:peterv, since you are the author of the regressor, bug 181967, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(peterv)
Flags: needinfo?(peterv)
Regressed by: 1819675
No longer regressed by: 181967

Set release status flags based on info from the regressing bug 1819675

Thanks for filing! I'll leave the session store folks to further triage this.

OS: Unspecified → All
Hardware: All → Desktop
Summary: Restore Last ClosedT `ctrl-shift-t/cmd-shift-t` inconsistency → Restore Last Closed Tab doesn't restore tab in another window if there are no tabs to restore in the current window
Version: Firefox 117 → Trunk

Need-infoing myself to look into this

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