Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

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

Clicking on a link in Tab 1 opens Tab 2 and clicking a link in Tab 2 opens Tab 3 in firefox while in IE, clicking on link in Tab 2 opens the url in Tab 1.

more options

I have application with url domain1.abc.com. I open the url in Firefox (Tab 1) and click on a button in application which opens domain2.xyz.com in another tab (Tab 2). There are various links in Tab 2 and when I click one of them, Firefox opens the link in third tab (Tab 3). Where as in IE, on clicking link in Tab 2, it opens url in Tab 1. So, in Firefox this extra tab is getting opened. What is the reason for this behaviour? Is there any solution to this. If i change domain2.xyz.com to domain1.xyz.com in Tab 2 of Firefox, it opens url in Tab 1 and does not open a third tab.

I have application with url domain1.abc.com. I open the url in Firefox (Tab 1) and click on a button in application which opens domain2.xyz.com in another tab (Tab 2). There are various links in Tab 2 and when I click one of them, Firefox opens the link in third tab (Tab 3). Where as in IE, on clicking link in Tab 2, it opens url in Tab 1. So, in Firefox this extra tab is getting opened. What is the reason for this behaviour? Is there any solution to this. If i change domain2.xyz.com to domain1.xyz.com in Tab 2 of Firefox, it opens url in Tab 1 and does not open a third tab.

Toutes les réponses (3)

more options

Do your links use the target attribute or are you using window.open() with a target attribute or are you using the window.opener object?

Taking a look at your example host names, I suspect this is a cross-site/cross-domain issue. Firefox may have some same-origin rules for the target attribute (although I didn't see that documented on MDN in a quick search).

more options

To link in Tab 2 uses target attribute to get the reference of the already opened tab. This works in IE and Chrome but somehow Firefox is not able to identify the target and instead opens a new tab.

more options

Please assemble a "test case" with that code and post it here - http://pastebin.mozilla.org/ - so we can try it and see what going on. Make sure you set it for a month - as a day may not be long enough.