Closed Bug 1888841 Opened 10 months ago Closed 10 months ago

forgetClosedTabById() never getting passed ids due to a typo

Categories

(Firefox :: Session Restore, defect, P1)

defect

Tracking

()

VERIFIED FIXED
126 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox124 --- wontfix
firefox125 --- wontfix
firefox126 --- verified

People

(Reporter: mccr8, Assigned: sfoster)

References

(Regression)

Details

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

Attachments

(1 file)

onDismissTab in recentlyclosed.mjs contains the typo e.originalTarget.souceWindowId. It looks like this might mean that forgetClosedTabById will never get ids passed to it. It looks like this was introduced by bug 1845836.

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

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

For more information, please visit BugBot documentation.

Sounds like we're missing some test coverage here then too.

The sourceWindowId that is typo'd here is used to retrieve the closed tab record associated with the window it was closed from. It is really an optimization. Without it we have to iterate through all the windows' closed tab data. With the identifier passed through from firefox view, we can resolve the reference faster.

From my testing, the feature is currently working even with the typo:

  1. Open tabs in 2 browser windows
  2. Close a tab in window 2
  3. In window 1, open firefox view and find the tab you just closed in the "Recently closed tabs" list
  4. Click the "dismiss" X button to forget this closed tab
  5. In window 2, open the History > Recently closed tabs menu

ER:
The tab you closed in step 1 is not in this list

So, the impact here is relatively minor: it should only be noticeable in sessions with many windows and closed tabs.

Assignee: nobody → sfoster
Severity: -- → S4
Flags: needinfo?(sfoster)
Priority: -- → P1
Whiteboard: [fidefe-firefox-view]
Pushed by sfoster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fe3be4ea2372 Fix typo when passing sourceWindowId to SessionStore's forgetClosedTabById. r=fxview-reviewers,jsudiaman,kcochrane
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch

The patch landed in nightly and beta is affected.
:sfoster, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox125 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(sfoster)
Flags: needinfo?(sfoster)

If following the steps from Comment 3 I can confirm that the tab closed in step 2 is not listed in the Recently closed tabs menu on the affected builds (on Firefox 124, Firefox 125.0.3 or on Firefox Nightly 126.0a1 build from 2024-04-02) using macOS 12.6.6, Windows 11 and Ubuntu 22.04.
I can also confirm that the tab closed in step 2 is not listed in the Recently closed tabs menu on Firefox 126.0-build2 on the previously mentioned platforms.
@sfoster, could you please let me know if something else should be verified here? Thank you in advance!

(In reply to bhidecuti from comment #8)

If following the steps from Comment 3 I can confirm that the tab closed in step 2 is not listed in the Recently closed tabs menu on the affected builds (on Firefox 124, Firefox 125.0.3 or on Firefox Nightly 126.0a1 build from 2024-04-02) using macOS 12.6.6, Windows 11 and Ubuntu 22.04.
I can also confirm that the tab closed in step 2 is not listed in the Recently closed tabs menu on Firefox 126.0-build2 on the previously mentioned platforms.
@sfoster, could you please let me know if something else should be verified here? Thank you in advance!

Yeah that is a good verification - we just needed to confirm nothing regressed.

Thank you for the confirmation, sfoster!
Based on Comment 8, I am marking this verified as fixed.

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: