browser.tabs.insertRelatedAfterCurrent not working properly
I have a new computer and browser.tabs.insertRelatedAfterCurrent is not working properly when set to "true" on this machine. I've been using Firefox for around 20 years now and never had a problem with this, it always worked as intended, like this: |Tab|Tab|Active Tab|Third New Tab|Second New Tab|First New Tab|Tab|
But now it's working like this, always inserting the new related tabs after the other related tabs, like this: |Tab|Tab|Active Tab|First New Tab|Second New Tab|Third New|Tab|
I searched Google for this bug and found out that a lot of people have this problem too, but haven't found any solutions. What should I do? Thank you in advance for any help, it's really appreciated, this is making my work quite annoying.
All Replies (2)
browser.tabs.insertRelatedAfterCurrent applies to opening a link opened via JavaScript (event handler or onclick). A tab you open normally uses browser.tabs.insertAfterCurrent.
If that doesn't work then you may have an extension interfering.
Start Firefox in Troubleshoot Mode to check if one of the extensions ("3-bar" menu button or Tools -> Add-ons -> Extensions) or if hardware acceleration or if userChrome.css/userContent.css is causing the problem.
- switch to the Default System theme: "3-bar" menu button or Tools -> Add-ons -> Themes
- do NOT click the "Refresh Firefox" button on the Troubleshoot Mode start window
It should still work as you expect if you don't do any external navigation.
There was a recent change in version 115 that resets the next opened tab position when you navigate with address bar/bookmarks/history to keep related tabs together (Bug 574385).
See also https://support.mozilla.org/en-US/questions/1417957.