forgetClosedTabById() never getting passed ids due to a typo
Categories
(Firefox :: Session Restore, defect, P1)
Tracking
()
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.
Comment 1•10 months ago
|
||
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.
Updated•10 months ago
|
Comment 2•10 months ago
|
||
Sounds like we're missing some test coverage here then too.
Assignee | ||
Comment 3•10 months ago
|
||
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:
- Open tabs in 2 browser windows
- Close a tab in window 2
- In window 1, open firefox view and find the tab you just closed in the "Recently closed tabs" list
- Click the "dismiss" X button to forget this closed tab
- 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.
Updated•10 months ago
|
Assignee | ||
Comment 4•10 months ago
|
||
Updated•10 months ago
|
Comment 6•10 months ago
|
||
bugherder |
Comment 7•10 months ago
|
||
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
towontfix
.
For more information, please visit BugBot documentation.
Assignee | ||
Updated•10 months ago
|
Updated•10 months ago
|
Comment 8•9 months ago
|
||
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!
Assignee | ||
Comment 9•9 months ago
|
||
(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.
Comment 10•9 months ago
|
||
Thank you for the confirmation, sfoster!
Based on Comment 8, I am marking this verified as fixed.
Description
•