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.
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.
Tutte le risposte (3)
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).
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.
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.