This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

The first two new tabs of the day opens in a new window instead.

more options

When working in a webpage tab the first two popups open in a window instead of a tab as I have designated in my setup. Is there any way to make these open in a tab or have them not open at all. They are usually ads of some sort. I am on a iMac using m10.13.6 MacOS.

When working in a webpage tab the first two popups open in a window instead of a tab as I have designated in my setup. Is there any way to make these open in a tab or have them not open at all. They are usually ads of some sort. I am on a iMac using m10.13.6 MacOS.

All Replies (3)

more options

Go to the Mozilla Add-ons Web Page {web Link} (There’s a lot of good stuff here) and search for a good ad / pop-up blocker.

more options

Hi EdwardLotz, if this is too long, the main point is the setting under (3)(B), but I want to provide the full background for reference.

As you know, the basic setting is on the Preferences page.

  • Mac: "3-bar" menu button (or Firefox menu) > Preferences
  • Windows: "3-bar" menu button (or Tools menu) > Options
  • Linux: "3-bar" menu button (or Edit menu) > Preferences
  • Any system: type or paste about:preferences into the address bar and press Enter/Return to load it

Scroll down to the Tabs section and make sure the box is checked for "Open new windows in a new tab instead"

Now... Firefox does make exceptions in some cases:

Dialog Window: Firefox may not be able to open a new tab in certain kinds of pop-up windows. Typically you would recognize these as "dialog" style because most of the toolbar is missing and you do not have a tabs bar. I don't have a workaround for this situation, but these should be rare.

Scripted Popup: If it's a normal window, there may be a script attached to the link. To force scripts to launch new windows in a new tab, you may need to modify a setting. Here's how:

(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) Adjust the preferences as follows:

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

  • 3 = divert new window to a new tab (default) <= This should already be set; if it's not, right-click > Reset to restore the 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

  • 0 = apply the setting under (A) to ALL new windows (even script windows) <= Try this one
  • 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) <= this should already be set; if it's not, right-click > Reset to restore the default)
  • 3 = open external links in a new tab in the last active window
  • 2 = open external links in a new window
  • 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.

Does that help with the problem links?

more options

Now that I re-read your question, I'm not sure whether the popups are opening from a link you are clicking or in some other way. If it's not from a link, then those settings may not help.