搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

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 於 修改