Steps to reproduce:
1. Go to a university or somewhere with JSTOR full text access (or VPN in) if you can.
2. Visit http://www.jstor.org/stable/3069399 as one example page.
3. Click View PDF, and indicate acceptance of the terms & conditions. The PDF will open in a new window. (in my case, it's with PDF X-Change Viewer.) FF shows the tab bar with one tab, the toolbars, awesomebar, etc...it's a regular browser window.
4. Open a new tab in that window. Go to a page with links.
5. Middle click one of those links, or right click and Open In New Tab.
6. The new tab will open as the LAST tab in whatever window you used most recently other than the window you're using right now. That window won't activate the new tab or even scroll to it if you have a lot of tabs open (the right arrow will momentarily glow to indicate new tab opening), but the tab will be there.
7. The new tab opens in the same window as the one hosting the link that was clicked.
Oops, this posted before I finished writing.
It doesn't matter if the original tab is closed, and you only have new, non-PDF tabs open. There is something about that window that no new tabs will open in it.
Opening a second defective window (by the same procedure) and having the original "defective" window as the most recently used one doesn't cause new tabs to open in it then either; new tabs open in the most recently used non-funky window.
"Funky" or "defective" there mean "opened via the JSTOR View PDF link" but I'm sure there's something else about those windows that is what's causing the bug.
Any ideas on how these windows are not like the others?
Here is the HTML element, copied from Firebug or View->source:
<a href="/stable/pdfplus/3069399.pdf" id="pdf" target="_blank" class="pdflink">View PDF</a>
I do not observe this bug in 3.6.16; it seems to be a version 4 regression.
Created attachment 530661 [details]
Is it reproducible with this testcase? Can you also please try in a fresh profile with all extensions and plugins disabled?
The testcase opens the doc in a new tab in the same window.
I don't have enough time now to do all the setup etc. for a new profile, maybe later.
WBT, have you had time to check in a fresh profile? Not only the minimized testcase but also with your original URL.
Not yet; I'm still in crunch mode for another week or two.
(In reply to Henrik Skupin (:whimboo) from comment #6)
> WBT, have you had time to check in a fresh profile? Not only the minimized
> testcase but also with your original URL.
(In reply to WBT from comment #7)
> Not yet; I'm still in crunch mode for another week or two.
Aha! After scouring the Internet to try to find a more public example, I have found one, and tested it with the latest release (8.0 as of this morning) in a fresh profile, and reproduced the bug again.
Here are another set of steps to reproduce:
Click on any of the courses listed there. A new window will open with the course description.
Optional: click on the "related URL" to get to a more interesting page with more links.
Middle-click on any link, or right click and Open in New Tab - the new tab opens in the last window that you interacted with before this one. That may be different than the window which launched the popup.
The latest version of FF will at least set that window as active (even if it's e. g. on another monitor), but it won't activate that tab - so even if you see the second-to-last-interacted-with-window becoming active, it might just be confusing, and it's possible to not see a new tab if you have many open. ("Why is this other window coming up again? And why isn't the link opening like I wanted to, in the window I was using?")
Now that I have it on a public-facing URL with no authentication required, you can give it a try! Note: That link might expire (stop working) around May 2013.