Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

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?

Solution choisie

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?

Lire cette réponse dans son contexte 👍 4

Toutes les réponses (1)

more options

Solution choisie

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?

Modifié le par jscher2000 - Support Volunteer