Closed Bug 1850856 Opened 1 year ago Closed 1 year ago

Reopen all tabs in the Recently closed tabs menu doesn't open all the tabs

Categories

(Firefox :: Session Restore, defect, P1)

defect
Points:
2

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
relnote-firefox --- 117+
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox117 --- verified
firefox118 --- verified
firefox119 --- verified

People

(Reporter: sfoster, Assigned: sfoster)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fidefe-firefox-view])

Attachments

(1 file)

In the console there's an exception:

NS_ERROR_ILLEGAL_VALUE: Invalid index: not in the closed tabs SessionStore.sys.mjs:3829
    ssi_undoCloseTab resource:///modules/sessionstore/SessionStore.sys.mjs:3829
    ss_undoCloseTab resource:///modules/sessionstore/SessionStore.sys.mjs:480
    onRestoreAllTabsCommand resource:///modules/sessionstore/RecentlyClosedTabsAndWindowsMenuUtils.sys.mjs:130

This is a regression from bug 1819675. We pass in the index, but as each tab is re-opened, it gets removed from the _closedTabs array so the index gets out of bounds. We should just pass 0 so we successively open the first in the array until the array is empty.

Marking as low severity as this isn't a commonly used feature.

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

Assignee: nobody → sfoster
Status: NEW → ASSIGNED
Pushed by sfoster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ab72a15d7fba Fix tab indices when re-opening all closed tabs from the History menu.r=sessionstore-reviewers,sclements

Comment on attachment 9351281 [details]
Bug 1850856 - Fix tab indices when re-opening all closed tabs from the History menu.r?Dao!

Beta/Release Uplift Approval Request

  • User impact if declined: The "reopen all tabs" in the history > recently close tabs menu only opens some of the closed tabs.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: * Open and close several tabs
  • Open History > Recently closed tabs menu and click "Reopen all tabs"
  • Confirm all of the tabs are re-opened. The Recently closed tabs menu should now be empty and disabled.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The fix is constrained to the handler for the reopen all tabs menu item. There are no other entry points.
  • String changes made/needed: None
  • Is Android affected?: No
Attachment #9351281 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch

I was able to reproduce the issue on Win10x64 using FF build 118.0b5 (20230905175953).
Verified as fixed on Win10x64/Mac 12.6 using FF build 119.0a1(20230905215534).

QA Whiteboard: [qa-triaged]

Comment on attachment 9351281 [details]
Bug 1850856 - Fix tab indices when re-opening all closed tabs from the History menu.r?Dao!

Approved for 118.0b6, thanks.

Attachment #9351281 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Verified as fixed on Win10x64/Mac 12.6 using FF build 118.0b6 (20230907180212).

Flags: qe-verify+
Attachment #9351281 - Flags: approval-mozilla-release?

Comment on attachment 9351281 [details]
Bug 1850856 - Fix tab indices when re-opening all closed tabs from the History menu.r?Dao!

Approved for 117.0.1

Attachment #9351281 - Flags: approval-mozilla-release? → approval-mozilla-release+

Added to the 117.0.1 release notes:

Fixed the Reopen all tabs option in the Recently closed tabs menu sometimes failing to open all tabs

Verified as fixed on Win10x64/Mac 12.6 using FF build 117.0.1 (20230912013654).

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: