Closed Bug 1860931 Opened 2 years ago Closed 2 years ago

Incorrect assignment to sourceWindowId in tab list

Categories

(Firefox :: Firefox View, defect)

defect

Tracking

()

VERIFIED FIXED
121 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox119 --- wontfix
firefox120 --- verified
firefox121 --- verified

People

(Reporter: Logan, Assigned: Logan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

In the Firefox View tab list code, the sourceWindowId attribute of the tab row is incorrectly assigned with two equals signs instead of one. Unclear what the impact of this is, but it does not appear to be correct.

Assignee: nobody → loganrosen
Status: NEW → ASSIGNED
Keywords: regression
Regressed by: 1845836

There are two equals signs when there should be just one. This was made more obvious after applying Prettier v3's auto formatting.

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

Pushed by mbanner@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dc00edd0eac6 fix bug in fxview-tab-list.mjs r=fxview-reviewers,sclements
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch

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

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

For more information, please visit BugBot documentation.

Flags: needinfo?(loganrosen)

sfoster, can you speak to the criticality of this/whether it needs an uplift?

Flags: needinfo?(loganrosen) → needinfo?(sfoster)

We should try to get this uplifted to 120 Beta, since as I said in the patch there might be an edge case that affects this.

Flags: needinfo?(sfoster)

adding NI for fx120 beta nomination

Flags: needinfo?(loganrosen)

Comment on attachment 9360134 [details]
Bug 1860931 - fix bug in fxview-tab-list.mjs r?#fxview-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined: Recently-closed tabs items in firefox view might re-open into the wrong window, or not at all.
  • Is this code covered by automated tests?: Unknown
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Close some tabs from a 2nd browser window, and view the recently-closed tabs list in firefox view. Clicking an item in this list should restore the tab to the originating window.
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Single-line fix in code that only affects this particular component in firefox view.
  • String changes made/needed: None
  • Is Android affected?: No
Attachment #9360134 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Thanks again for spotting this and putting in the patch :Logan

Flags: needinfo?(loganrosen)
QA Whiteboard: [qa-triaged]

Hi,

I am trying to verify the fix following the steps from Comment 10 but after closing some tabs from a 2nd window and then restoring them in another window from the recently-closed tab list in Firefox view, still opens them in the current window not the originating one.

Am I missing something here?

Flags: needinfo?(sfoster)

(In reply to Peter Magyari (Desktop QA) from comment #12)

Hi,

I am trying to verify the fix following the steps from Comment 10 but after closing some tabs from a 2nd window and then restoring them in another window from the recently-closed tab list in Firefox view, still opens them in the current window not the originating one.

Am I missing something here?

I think this is in fact expected behavior for firefox view... I think sfoster got confused by what this was fixing? From what I can see, sourceWindowId is used in recently closed tabs to delete a closed tab when a user dismisses that entry in Firefox View per this code.

Comment on attachment 9360134 [details]
Bug 1860931 - fix bug in fxview-tab-list.mjs r?#fxview-reviewers

Approved for 120.0b5

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

Following up Comment 13, the sourceWindowId attribute of the tab row is now correctly assigned with one equal sign instead of two.
Dismissing a recently closed entry in Firefox View does still also remove it from recently closed tabs correctly.
Not sure how else I could verify the fix in this case.

Thank you for the clarification Sarah!

Flags: needinfo?(sfoster)
Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triaged]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: