Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Opening links / tabs behaviour help

  • 5 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 YongHan

more options

I've recently made the switch to Firefox coming from Opera, and there's a few behaviours I'm missing / haven't figured out how to set up to match what I'm used to. Could someone point me in the right direction?

1) When I click an external link (e.g. in Discord) to open in browser (Firefox is now default), it opens the link but it overrides the currently selected tab rather than opening a new tab.

2) Following on from that, clicking the link also doesn't make Firefox the active window. Previously if I opened a new link from elsewhere, the other browser would come to the front. Can Firefox do that too?

I currently have it set so that opening a link in a new tab doesn't switch to that tab. Which is behaviour I want (if I'm doing that in Firefox itself).

I've recently made the switch to Firefox coming from Opera, and there's a few behaviours I'm missing / haven't figured out how to set up to match what I'm used to. Could someone point me in the right direction? 1) When I click an external link (e.g. in Discord) to open in browser (Firefox is now default), it opens the link but it overrides the currently selected tab rather than opening a new tab. 2) Following on from that, clicking the link also doesn't make Firefox the active window. Previously if I opened a new link from elsewhere, the other browser would come to the front. Can Firefox do that too? I currently have it set so that opening a link in a new tab doesn't switch to that tab. Which is behaviour I want (if I'm doing that in Firefox itself).

被采纳的解决方案

Hello BraXzy,

Regarding your first request, here is a detailed solution provided by a moderator that works (I have tested it on my machine by opening an external link in Discord): Link to question with detailed solution: https://support.mozilla.org/en-US/questions/1258193

In your case, type "browser.link.open_newwindow.override.external" and click the pencil icon on the right of the column to change it from -1 (default) to 3. If you want detailed explanations on what these numbers mean, refer to the link above.

Regarding your second request, when testing on my machine, Firefox appears to come to the front when clicking external links in Discord after applying the above configuration setting. I tested with Google Chrome being open and clicking an external link in Discord, and it appears that Firefox (which is set as the default browser) will then come to the front.

Hopefully this answer helps, if it did, kindly mark this answer as the solution(solved)!

定位到答案原位置 👍 1

所有回复 (5)

more options

选择的解决方案

Hello BraXzy,

Regarding your first request, here is a detailed solution provided by a moderator that works (I have tested it on my machine by opening an external link in Discord): Link to question with detailed solution: https://support.mozilla.org/en-US/questions/1258193

In your case, type "browser.link.open_newwindow.override.external" and click the pencil icon on the right of the column to change it from -1 (default) to 3. If you want detailed explanations on what these numbers mean, refer to the link above.

Regarding your second request, when testing on my machine, Firefox appears to come to the front when clicking external links in Discord after applying the above configuration setting. I tested with Google Chrome being open and clicking an external link in Discord, and it appears that Firefox (which is set as the default browser) will then come to the front.

Hopefully this answer helps, if it did, kindly mark this answer as the solution(solved)!

由YongHan于修改

more options

YongHan said

Hello , Regarding your first request, here is a detailed solution provided by a moderator that works (I have tested it on my machine by opening an external link in Discord): Link to question with detailed solution: https://support.mozilla.org/en-US/questions/1258193 In your case, type "browser.link.open_newwindow.override.external" and click the pencil icon on the right of the column to change it from -1 (default) to 3. If you want detailed explanations on what these numbers mean, refer to the link above. Regarding your second request, when testing on my machine, Firefox appears to come to the front when clicking external links in Discord after applying the above configuration setting. I tested with Google Chrome being open and clicking an external link in Discord, and it appears that Firefox (which is set as the default browser) will then come to the front. Hopefully this answer helps, if it did, kindly mark this answer as the solution(solved)!

Thank you so much for your help. The first part is working exactly as I hoped :)

As for the second part, I want to keep it so that while using Firefox, opening a link in New Tab does so in the background. But if I open an external link it opens. Is it possible to have both?

Could you also please edit my username in the original post as I have now updated it thank you!

由BraXzy于修改

more options

Hello BraXzy,

For the second request, you can click the menu (3-line) button on the top-right corner of your Firefox browser, then click "Settings". At the "Tabs" section, uncheck the "When you open a link, image or media in a new tab, switch to it immediately" checkbox.

Firefox should now work as intended, opening a non-external link in New Tab will not forcibly switch you to the New Tab and will instead open in the background. Opening external links in Discord will bring Firefox to the front and in this case will switch you to the New Tab for the opened external link. I tested on my machine for both scenarios. I also edited your username in the original post!

Refer to the screenshot if you need additional context. Hopefully this answer managed to help you, if it did, kindly mark this answer as the solution(solved)!

由YongHan于修改

more options

YongHan said

Hello BraXzy, For the second request, you can click the menu (3-line) button on the top-right corner of your Firefox browser, then click "Settings". At the "Tabs" section, uncheck the "When you open a link, image or media in a new tab, switch to it immediately" checkbox. Firefox should now work as intended, opening a non-external link in New Tab will not forcibly switch you to the New Tab and will instead open in the background. Opening external links in Discord will bring Firefox to the front and in this case will switch you to the New Tab for the opened external link. I tested on my machine for both scenarios. I also edited your username in the original post! Refer to the screenshot if you need additional context. Hopefully this answer managed to help you, if it did, kindly mark this answer as the solution(solved)!

Thank you so much for your help, it still wasn't quite working on my machine but I found that this setting did what I needed:

browser.tabs.loadDivertedInBackground changed from true to false

So now if I'm on Firefox and middle mouse click a link, it still loads in the background (thanks to the initial setting you mentioned). And if I click a link externally, it switches to that tab and focuses the window.

more options

Hello BraXzy,

Glad to hear that you managed to solve the issue! browser.tabs.loadDivertedInBackground is usually set to False by default so good call on determining that your setting was changed from default settings and that it was causing your issue.

由YongHan于修改