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.

Buscar en Ayuda

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

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.

  • 3 respuestas
  • 1 tiene este problema
  • 1 visita
  • Última respuesta de the-edmeister

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.

Todas las respuestas (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.