Usually, hen i use middle click, the corresponding tab is opened in background, which is what I want.
But when I middle click to an url for which there is an assignment different than current container context, the new tab has focus.
Consider or example:
github.com is assigned to GH containergithub.comGH tab and destroy the temp tabReproduced in FF 52.0.2 x64 on Win Seven.
I confirm it's annoying.
Also happens on Linux (Nightly/Solus)
It is annoying.
I was kinda hoping browser.webNavigation.onCreatedNavigationTarget would help solve this issue however it seems there isn't anything we can do without using a content script which would likely be buggy.
Well buggy content script would probably be better than having to deal with this every time I want to open link in new tab imho.
Same problem with FF 55.0.3 (win7). Really annoying.
I think the extension should just respect the config browser.tabs.loadInBackground (which is true by default)
Just ran into this bug, can anything be done about it?
@Keith94 I think there might be an API to address this however I haven't had time to play about with it.
Extensions don't have access to browser.tabs.loadInBackground nor the ability to detect what the user does in terms of shift+click or middle click.
@jonathanKingston Haven't played around with web extensions a lot, but if the extension cannot even read the said preference, then at least it can create a preference of its own - whether to open in background or foreground.
This issue is the only thing which annoys me with this extension.
Note: I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1421447 as the upstream bug that would enable this fix.
@jonathanKingston, @groovecoder, I'm not sure if I'm missing something here, but I believe I've fixed this issue in the PR above with a simple passing of the original tabs's active state to the artificially opened tab.
I realized that this issue regressed. I dont know whether it started again as of today or maybe even a few days before.
please re-open the issue
@staabm, @groovecoder, it's just that the fix hasn't actually been released yet, to the best of my knowledge. The last release of the extension was on December 1st, and my PR was merged on December 4th.
A release came out yesterday, and I can confirm that this is now working as expected.
Closing; this should have been fixed in the last release. (As mentioned by @gaborluk)