Mozilla VPN is currently experiencing an outage. Our team is actively working to resolve the issue. Please check the status page for real-time updates. Thank you for your patience.

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

Tripadvisor opens a window even though option to open tabs is set

more options

I have the option set to open links in a new tab rather than a new window. This seems to work perfectly except in one situation. Tripadvisor will often open a new window about 'other suitable hotels', always hidden behind the other windows, the only indication being the icon on the task bar. This window opens of its own accord, not directly due to my actions, at least not because I have clicked a link. If I don't spot the task bar icon and close the main Firefox window first then the Tripadvisor window becomes the default and loads at the next startup. Thankfully I can find all my other tabs under recently closed windows, but it's a hassle.

How does Tripadvisor cause this to happen, in contradiction to the options, and when everything else seems to follow the setting? Is it because it 'opens itself'? Can it be stopped?

I have the option set to open links in a new tab rather than a new window. This seems to work perfectly except in one situation. Tripadvisor will often open a new window about 'other suitable hotels', always hidden behind the other windows, the only indication being the icon on the task bar. This window opens of its own accord, not directly due to my actions, at least not because I have clicked a link. If I don't spot the task bar icon and close the main Firefox window first then the Tripadvisor window becomes the default and loads at the next startup. Thankfully I can find all my other tabs under recently closed windows, but it's a hassle. How does Tripadvisor cause this to happen, in contradiction to the options, and when everything else seems to follow the setting? Is it because it 'opens itself'? Can it be stopped?

被采纳的解决方案

By default, Firefox diverts most links that open in new windows, and automatic pop-up windows, to a new tab. However, if the pop-up specifies its size or modifies what toolbars are displayed, Firefox defers to the site so that in case it's a dialog related to the page, it will display as intended.

You can force Firefox to treat ALL pop-up windows the same, whether they have these special feature or not. Doing that requires a visit to the about:config preferences editor. Apologies for what will seem like excess detail, but there are 3 related settings so I want to list them together.

In a new tab, type or paste about:config and press Enter. Click the button promising to be careful.

In the filter box, type or paste link.o and pause while the list is filtered.

Double click these to modify the values as desired (especially the second one):

(A) browser.link.open_newwindow

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

* First checkbox in Options > Tabs

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

0 = apply the setting under (A) to ALL new windows (even script windows)
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
1 = open external links in the last active tab replacing the current page

Can you tame those popups?

定位到答案原位置 👍 4

所有回复 (1)

more options

选择的解决方案

By default, Firefox diverts most links that open in new windows, and automatic pop-up windows, to a new tab. However, if the pop-up specifies its size or modifies what toolbars are displayed, Firefox defers to the site so that in case it's a dialog related to the page, it will display as intended.

You can force Firefox to treat ALL pop-up windows the same, whether they have these special feature or not. Doing that requires a visit to the about:config preferences editor. Apologies for what will seem like excess detail, but there are 3 related settings so I want to list them together.

In a new tab, type or paste about:config and press Enter. Click the button promising to be careful.

In the filter box, type or paste link.o and pause while the list is filtered.

Double click these to modify the values as desired (especially the second one):

(A) browser.link.open_newwindow

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

* First checkbox in Options > Tabs

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

0 = apply the setting under (A) to ALL new windows (even script windows)
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
1 = open external links in the last active tab replacing the current page

Can you tame those popups?

由jscher2000 - Support Volunteer于修改