Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

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 ответа
  • 1 имеет эту проблему
  • 1 просмотр
  • Последний ответ от 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.

Все ответы (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.