User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0
I'm not sure if this is a bug or whether it's meant to run like this.
Basically, if I have two FF windows open, and one has a few tabs running and the other deosn't, if I right click a link in the window that hasn't many tabs, the link will open up in a tab in the other window. At first I didn't even realise this was happeing, and kept on clicking 'Open link in new tab' When I switched to the other window I realised that they'd all been opening in that window.
Hopefully this is a bug that can be fixed. Thanks for a great browser on the whole!
Steps to Reproduce:
1. Have two FF windows open at one time, the first with lots of tabs, the second just one.
2. On the second FF window, right click on a link and press 'Open link in new tab'
3. Change back to the other window and there is the new tab.
Standard FF 4 theme
Could you see if the issue occurs if using Firefox in safe mode:
How about with a new, empty testing profile? (Don't install any addons into it)
Works for me on Mozilla/5.0 (Windows NT 6.1; rv:2.0) Gecko/20100101 Firefox/4.0
Useragent: Mozilla/5.0 (Windows NT 6.1; rv:2.0) Gecko/20100101 Firefox/4.0
Issue Occurs in Safe Mode as well with an empty profile.
1. Go to this URL (or any other that uses window.open JS method):
3. Try to open a new tab in the new window from any of the links on the page that's displayed
The new tab will open in the previous window instead.
(In reply to comment #0)
> 2. On the second FF window, right click on a link and press 'Open link in new
Joe, is this second window a popup? If yes, that is an expected behavior made by bug 606678.
I understand the expected behavior by Bug 606678 for popup window.
But the problem is what if the popup has locationbar, scrollbar, toolbar, menubar and a normal window size.
How can the user tell this is a popup?
The even worse thing is user can press CMD+T to create a new tab in this "popup" window.
Then the user start to browse some other sites in the new tab and right click a link to open in a new tab.
Surprise, the new tab is opened in another window.
The link under "This window has the menu and the status bars.".
This example opens a small window, so you can tell this is a popup, some sites will not set the size.
I hit this problem myself from yahoo fantasy baseball, my team page, click any game time to open a game preview.
Ok, that important information was missing. So it makes sense. Dao, how do we detect if we have a simple popup or a rich window with toolbars visible?
Dao, any feedback on comment 6?
(In reply to comment #6)
> Ok, that important information was missing. So it makes sense. Dao, how do we
> detect if we have a simple popup or a rich window with toolbars visible?
We check whether the window's chromehidden attribute is empty. For the popup from comment 3, the value is "toolbar directories extrachrome".
> We check whether the window's chromehidden attribute is empty. For the popup
> from comment 3, the value is "toolbar directories extrachrome".
Example here: http://www.mageo.cz/home/MCA/OpenInNewWindow.html
We will most likely move off of the Firefox platform because of this problem. I can't see the rationale in disallowing any window to open a tab within its own window. I agree with the previous poster that allowing Firefox 3 behavior would be a reasonable solution to the problem.
(In reply to Phil Zampino from comment #10)
> We will most likely move off of the Firefox platform because of this
You can try this add-on which will return old behavior to new versions of Firefox.
Unfortunately that add-on is for the Windows platform only.
Apologies, the first time I looked at that add-on it wouldn't install on Mac OSX, but apparently that's no longer the case. Thanks for the correction.