Open Bug 1970086 Opened 3 months ago Updated 3 months ago

When the focused tab is closed, the focus moves to an old, possibly unloaded tab

Categories

(Firefox :: Tabbed Browser, enhancement)

Firefox 139
Desktop
Unspecified
enhancement

Tracking

()

People

(Reporter: vincent-moz, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:139.0) Gecko/20100101 Firefox/139.0

Steps to reproduce:

  1. Open tabs to various web pages with Ctrl-T.
  2. Switch to a tab that isn't the rightmost tab.
  3. Close this tab.

Actual results:

The focus is changed to the tab on the right of the closed tab, even if it was old and unloaded.

Expected results:

Firefox should make a better choice. The last viewed tab is generally not a bad one.

Bug 1811162 was closed because of bug 748666 comment 5, but if the goal is to open a related tab, Firefox should implement a mechanism to remember the relation between tabs. Systematically opening the tab on the right (which may be completely unrelated to the closed tab) is a poor solution.

Component: Untriaged → Tabbed Browser

One case for which this is particularly annoying: Say, one has two consecutive tabs A and D. From te focused tab A, one clicks on a link with the middle button to open the link in a new tab, giving tab B. From tab B, one clicks on a link with the middle button to open the link in a new tab, giving tab C. So one has A B C D. Then closing tab C gives A B D with the focus on tab B as expected. But at this point, closing tab B gives A D with the focus on tab D instead of tab A.

I think this is more an enhancement, marking as new for engineering input. Thank you.

Status: UNCONFIRMED → NEW
Type: defect → enhancement
Ever confirmed: true
Hardware: Unspecified → Desktop
You need to log in before you can comment on or make changes to this bug.