Closed Bug 1718436 Opened 3 years ago Closed 3 years ago

Middle-Clicking any line under "History - Recently Closed Tabs" reopens 2 tabs, instead of 1.

Categories

(Firefox :: Session Restore, defect)

Firefox 89
defect

Tracking

()

VERIFIED FIXED
92 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox89 --- wontfix
firefox90 --- wontfix
firefox91 --- verified
firefox92 --- verified

People

(Reporter: sata6767, Assigned: u608768)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0

Steps to reproduce:

Have 25 lines under History -> Recently Closed Tabs (The maximum amount)

Middle mouse click (meaning using the mouse wheel) any line under History -> Recently Closed Tabs

Actual results:

Two tabs reopen. The line/tab I middle clicked on, as well as another one, which is the line/tab just under the line I clicked on.

The 2 opened tabs may appear in different locations in the

Expected results:

Only the tab I middle clicked on should have reopened (the same thing as if I would have left clicked it)

I did not find any information regarding this, so I assume that this is indeed a bug, and not intended behavior.

The Bugbug bot thinks this bug should belong to the 'Firefox::Session Restore' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Session Restore

Causes us to handle middle clicks twice, which results in us opening two recent
tabs instead of one. The regressing bug dealt with similar problems in D112046.

Assignee: nobody → kmadan
Status: NEW → ASSIGNED
Attachment #9230525 - Attachment description: Bug 1718436 - Remove onclick handler from "Recently Closed Tabs" menu items, r?Gijs → Bug 1718436 - Don't register the "Recently Closed Tabs" middle click handler for menuitems, r?Gijs
Pushed by kmadan@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2092d6ef5f95 Don't register the "Recently Closed Tabs" middle click handler for menuitems, r=Gijs
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch

Am I right in thinking we should probably uplift this so it's fixed in 91? :-)

Flags: needinfo?(kmadan)

Comment on attachment 9230525 [details]
Bug 1718436 - Don't register the "Recently Closed Tabs" middle click handler for menuitems, r?Gijs

Beta/Release Uplift Approval Request

  • User impact if declined: Middle clicking "recently closed tab" entries will continue to open two tabs instead of one.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Small code change covered by tests.
  • String changes made/needed:
Flags: needinfo?(kmadan)
Attachment #9230525 - Flags: approval-mozilla-beta?

(In reply to :Gijs (he/him) from comment #6)

Am I right in thinking we should probably uplift this so it's fixed in 91? :-)

Yes, done!

Though unsure if I need to request approval for esr91 separately from beta.

Comment on attachment 9230525 [details]
Bug 1718436 - Don't register the "Recently Closed Tabs" middle click handler for menuitems, r?Gijs

Approved for 91 beta 5, thanks!

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

(In reply to :kashav from comment #8)

Though unsure if I need to request approval for esr91 separately from beta.

From matrix:

jld: If a patch gets uplifted to Beta 91, is it also auto-uplifted to ESR 91, or not? (I used to know this kind of thing, but it's been a while.)

jcristau: @jld yes
we'll keep beta and esr91 in sync until close to release

So you should be all done here.

QA Whiteboard: [qa-triaged]

Reproduced the issue using Firefox 91.0a1 (20210627213728) on Windows 10x64 by middle-clicking under any closed tab inside Menu Bar -> History-> Recently Closed Tabs.
Verified fixed with Firefox 91.0b6 (20210722185635) and 92.0a1 (20210722214815) on Windows 10x64, macOS 10.15 and Ubuntu 18.04.

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

Attachment

General

Creator:
Created:
Updated:
Size: