Open Bug 1600128 Opened 5 years ago Updated 8 months ago

Option to open new tab to the immediate right from current tab

Categories

(Firefox :: Tabbed Browser, enhancement)

71 Branch
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: dmitriy-muraviov, Unassigned)

Details

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

Steps to reproduce:

  1. Make sure that in Options -> General -> "When you open a link in a new tab, switch to it immediately" is DISABLED.
  2. Open a web page. Let's call it "A".
  3. Middle click on three links on page "A". Let's call tabs opened from these links, in chronological order of opening, "1", "2", "3"

Actual results:

Tabs are arranged, from left to right, in this order:
A123

Expected results:

I want tabs to be arranged in this order:
A321

In other words, I want a link just opened from current tab to always be opened to the immediate right, not 15 tabs away, so I wouldn't have to search for it.

Additional info/rationale:
I'm perfectly fine with middle-clicked bookmarks and new tab page opening to the right of all tabs, I only want to disable putting related tabs at the end of group (essentially to disable this "smart" grouping altogether).

The way I want tabs to be ordered is logical and convenient - I read tabs from right to left - from the first one I opened to the last one I opened, and after that coming back to page of origin: "A".

The way it currently works is a mess: if after I opened tab "2" I decided to switch to it, and then return to tab "A" and open tab "3", the final order will be this:
A312

There are a couple of useless about:config settings that I've googled:
browser.tabs.insertAfterCurrent (default is false)
browser.tabs.insertRelatedAfterCurrent (default is true)
No combination of their settings allows for behavior that I want,
The name of the first one is misleading - it should be called "insertIndependentAfterCurrent".
The name of the second one is also misleading, it should be called "insertRelatedAtEndOfRelatedGroup" (if false, it opens new tab to the right of all (including independent) tabs).

There are flawed and complicated solutions to force my desired behavior using extensions, I'll list some problems:

  1. When immediately after opening, a tab is moved to the desired position by extension, it is animated - that looks ugly.
  2. Opening closed tab restores it to incorrect position - to the immediate right from current tab, even if it was in a different position originally.
  3. There is no way for extension to know the origin of new tab - it might be a bookmark, or another program opening webpage in default browser - in both these cases new tab should be opened to the right of all tabs, but extension forces it to open to the immediate right from current tab, like any tab.
  4. Many session managers restore tabs at incorrect order when using extension to force this behavior.
  5. With introduction of Manifest v3 all old extensions will stop working, and there might be no new exnension for forcing this behavior for a long time.

Tab Mix Plus allowed for this behavior without any of the above problems, and it was a great experience. Please, allow this behavior natively, because now it is impossible to recreate at high quality using thrid-party methods.

The way it currently works is a mess also because if Options -> General -> "When you open a link in a new tab, switch to it immediately" is ENABLED, so that after each middle click user is switched to new tab, and gets manually back to tab "A" to middle click the next link on it, the final order will be:
A321
which is exactly the behavior I want.

So, order of tabs depends on setting "When you open a link in a new tab, switch to it immediately"

Component: Untriaged → Tabbed Browser
OS: Unspecified → All
Hardware: Unspecified → All
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.