Closed Bug 1576612 Opened 5 years ago Closed 11 months ago

Middle clicking multiple selected tabs closes only the clicked tab

Categories

(Firefox :: Tabbed Browser, defect, P5)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
115 Branch
Tracking Status
firefox68 --- wontfix
firefox69 --- wontfix
firefox70 --- wontfix
firefox115 --- verified

People

(Reporter: vlucaci, Assigned: niklas)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-quality-foundation])

Attachments

(2 files)

Affected versions

  • 69.0b16
  • 70.0a1 (2019-08-25)
  • 68.0.2

Affected platforms

  • Windows 10x64
  • macOS 10.14.6
  • Ubuntu 18.04x64

Steps to reproduce

  1. Launch FF.
  2. Access a few sites(each one in a new tab) of your choosing.
  3. Select several (or all) of them via CTRL+Click or Shift+Click.
  4. Middle mouse click one of the selected tabs.

Expected result

  • The selection of tabs closes when the user middle clicks one of the tabs

Actual result

  • The selected tabs are not closed, besides only the tab on which the user has performed the middle click.

Regression range

  • Will return with regression ASAP.

Needinfo for regression range.

Flags: needinfo?(vlad.lucaci)

Bugbug thinks this bug is a regression, but please revert this change in case of error.

Keywords: regression

Hello,

This issue does not seem to be a regression. I want as far back as 2018-08-29, about the same time when Multi-Select Tabs was being implemented and the issue occurs there with the same repro steps.
It seems that this (middle click) action was not defined to close the selection of tabs ever since then.

However this would be a great quality of life improvement, as the user would have another method of closing multiple selected tabs.

Has Regression Range: --- → no
Flags: needinfo?(vlad.lucaci)
Keywords: blocked-ux
Priority: -- → P5
Has Regression Range: no → ---

Please consider this use case before implementing a fix for this bug:

Many tabs selected
Accidentally middle-clicked one of the selected tabs instead of right-clicking (happens occasionally on laptop trackpad with click zones set)
Result - many tabs get closed
Recovery Options - 'Undo Close Tab' many times (as it only reopens one at a time) or retrieve them all out of History

Could we get a fix for Bug 887515 (i.e. Bug 1487193 ) or a pref to turn off 'middle-click closes tabs' before/when fixing this bug?

Severity: normal → S3
See Also: → 1798862
Whiteboard: fidefe-quality-foundation
Whiteboard: fidefe-quality-foundation → [fidefe-quality-foundation]
Assignee: nobody → nbaumgardner
Status: NEW → ASSIGNED

This is no longer blocked now that bug 887515 has been implemented.

Clicking the close button on a multiselected tab closes all multiselected tabs so we should match the behavior defined here for middle clicking a multiselected tab.

Keywords: blocked-ux
Pushed by nbaumgardner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2814e09f635a
Close all multiselected tabs on middle click. r=dao

Backed out for causing failures on browser_multiselect_tabs_close.js

[task 2023-05-16T16:05:51.453Z] 16:05:51     INFO - TEST-PASS | browser/base/content/test/tabs/browser_multiselect_tabs_close.js | Zero multiselected tabs - 
[task 2023-05-16T16:05:51.454Z] 16:05:51     INFO - Buffered messages finished
[task 2023-05-16T16:05:51.454Z] 16:05:51     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/tabs/browser_multiselect_tabs_close.js | Test timed out - 
[task 2023-05-16T16:05:51.455Z] 16:05:51     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-05-16T16:05:51.455Z] 16:05:51     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/tabs/browser_multiselect_tabs_close.js | Uncaught exception received from previously timed out test bound closeAllMultiselectedMiddleClick - TabClose listener not removed before the end of test
[task 2023-05-16T16:05:51.456Z] 16:05:51     INFO - GECKO(1387) | MEMORY STAT | vsize 8230MB | residentFast 495MB | heapAllocated 163MB
[task 2023-05-16T16:05:51.456Z] 16:05:51     INFO - TEST-OK | browser/base/content/test/tabs/browser_multiselect_tabs_close.js | took 90059ms
[task 2023-05-16T16:05:51.456Z] 16:05:51     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-05-16T16:05:51.457Z] 16:05:51     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/tabs/browser_multiselect_tabs_close.js | Found a tab after previous test timed out: http://mochi.test:8888/ - 
[task 2023-05-16T16:05:51.457Z] 16:05:51     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-05-16T16:05:51.458Z] 16:05:51     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/tabs/browser_multiselect_tabs_close.js | Found a tab after previous test timed out: http://mochi.test:8888/ - 
[task 2023-05-16T16:05:51.458Z] 16:05:51     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-05-16T16:05:51.458Z] 16:05:51     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/tabs/browser_multiselect_tabs_close.js | Found a tab after previous test timed out: http://mochi.test:8888/ - 
[task 2023-05-16T16:05:51.459Z] 16:05:51     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-05-16T16:05:51.459Z] 16:05:51     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/tabs/browser_multiselect_tabs_close.js | terminating browser early - unable to close tabs; skipping remaining tests in folder - 
[task 2023-05-16T16:05:51.460Z] 16:05:51     INFO - GECKO(1387) | Completed ShutdownLeaks collections in process 1387
Flags: needinfo?(nbaumgardner)
Pushed by nbaumgardner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/969dde8601ec
Close all multiselected tabs on middle click. r=dao
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
Flags: needinfo?(nbaumgardner)
Flags: qe-verify+

Verified as fixed with Windows 10x64, macOS 10.12.6 and Ubuntu 18.4 Firefox 116.0a1 and Firefox 115.0b3.

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: