X
Tap here to go to the mobile version of the site.

Support Forum

Settings to open browser links in new tab, and external links in new window

Posted

My Mac Firefox 66 preferences are set to open links in new tabs. But I also want links from external programs (e.g.Mail.app) to open in a new window. Is there a config setting or extension for that?

My Mac Firefox 66 preferences are set to open links in new tabs. But I also want links from external programs (e.g.Mail.app) to open in a new window. Is there a config setting or extension for that?

Chosen solution

Hi pw9571, yes, actually, there is a preference for that, but you need to dig a bit for it. I'm going to show all three of these related preferences:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste neww and pause while the list is filtered

(3) Review/Adjust the preferences as follows:

(A) browser.link.open_newwindow - for links in Firefox tabs

This is the one that has a checkbox on the Preferences page:

  • 3 = divert new window to a new tab (default)
  • 2 = allow link to open a new window
  • 1 = force new window into same tab

(B) browser.link.open_newwindow.restriction - for links in Firefox tabs

By default, if a page sets width, height, or toolbars for a popup, Firefox will let it be a separate window. To force those into a tab as well, you can change this preference to 0:

  • 0 = apply the setting under (A) to ALL new windows (even script windows with features)
  • 2 = apply the setting under (A) to normal windows, but NOT to script windows with features (default)
  • 1 = override the setting under (A) and always use new windows

(C) browser.link.open_newwindow.override.external - for links in other programs

  • -1 = apply the setting under (A) to external links (default)
  • 3 = open external links in a new tab in the last active window
  • 2 = open external links in a new window <= Try this one
  • 1 = open external links in the last active tab replacing the current page

To return to normal if things go haywire, right-click each "modified" preference and choose Reset.

Success?

Read this answer in context 1
Quote

Additional System Details

Installed Plug-ins

  • Shockwave Flash 32.0 r0

Application

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:66.0) Gecko/20100101 Firefox/66.0

More Information

jscher2000
  • Top 10 Contributor
8583 solutions 70199 answers

Chosen Solution

Hi pw9571, yes, actually, there is a preference for that, but you need to dig a bit for it. I'm going to show all three of these related preferences:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

(2) In the search box above the list, type or paste neww and pause while the list is filtered

(3) Review/Adjust the preferences as follows:

(A) browser.link.open_newwindow - for links in Firefox tabs

This is the one that has a checkbox on the Preferences page:

  • 3 = divert new window to a new tab (default)
  • 2 = allow link to open a new window
  • 1 = force new window into same tab

(B) browser.link.open_newwindow.restriction - for links in Firefox tabs

By default, if a page sets width, height, or toolbars for a popup, Firefox will let it be a separate window. To force those into a tab as well, you can change this preference to 0:

  • 0 = apply the setting under (A) to ALL new windows (even script windows with features)
  • 2 = apply the setting under (A) to normal windows, but NOT to script windows with features (default)
  • 1 = override the setting under (A) and always use new windows

(C) browser.link.open_newwindow.override.external - for links in other programs

  • -1 = apply the setting under (A) to external links (default)
  • 3 = open external links in a new tab in the last active window
  • 2 = open external links in a new window <= Try this one
  • 1 = open external links in the last active tab replacing the current page

To return to normal if things go haywire, right-click each "modified" preference and choose Reset.

Success?

Hi pw9571, yes, actually, there is a preference for that, but you need to dig a bit for it. I'm going to show all three of these related preferences: (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk. (2) In the search box above the list, type or paste '''neww''' and pause while the list is filtered (3) Review/Adjust the preferences as follows: (A) '''browser.link.open_newwindow''' - ''for links in Firefox tabs'' This is the one that has a checkbox on the Preferences page: * '''3 = divert new window to a new tab (default)''' * 2 = allow link to open a new window * 1 = force new window into same tab (B) '''browser.link.open_newwindow.restriction''' - ''for links in Firefox tabs'' By default, if a page sets width, height, or toolbars for a popup, Firefox will let it be a separate window. To force those into a tab as well, you can change this preference to 0: * 0 = apply the setting under (A) to ALL new windows (even script windows with features) * 2 = apply the setting under (A) to normal windows, but NOT to script windows with features (default) * 1 = override the setting under (A) and always use new windows (C) '''browser.link.open_newwindow.override.external''' - ''for links in other programs'' * -1 = apply the setting under (A) to external links (default) * 3 = open external links in a new tab in the last active window * '''2 = open external links in a new window''' <= Try this one * 1 = open external links in the last active tab replacing the current page To return to normal if things go haywire, right-click each "modified" preference and choose Reset. Success?
Was this helpful to you? 1
Quote

Question owner

Thank you! Option C was what I was looking for, and it worked.  ;-)

Thank you! Option C was what I was looking for, and it worked. ;-)
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.