Closed Bug 384924 Opened 18 years ago Closed 18 years ago

TWO TABS (identical) open with one click of a link.

Categories

(Firefox :: Tabbed Browser, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 262376

People

(Reporter: dick.guertin, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4 When JavaScript is enabled AND a link has target="_blank" AND that link is contained in a frameset (not visible if you view the page) AND you hold down the modifier key that signals opening in a new page/tab, then TWO TABS are opened and it takes twice as long to process since each is loading. If I disable JavaScript, only ONE tab is opened, but I suspect that's because the page containing the link is a normal html page, not a frameset page. This is easily demonstrated by turning off Preferences->Content->Enable Javascript. Then login to a gmail account that has received a Mozilla Forum response, which I know contains target="_blank". If I hold down my Command key and click the link in the email to visit the Mozilla response, I get TWO TABS opening at the same time. I'm on a Macintosh OSX 10.4.9 system with Firefox 2.0.0.4. This does NOT happen in Safari, which tells me the link will go to a new window, but which opens only one window even if I hold down my Command key. This bug was mentioned in Bug 279223, Comments 17 & 18. Bug 279223 concerns the Status Bar showing more information, which would have been helpful in avoiding this bug. Reproducible: Always Steps to Reproduce: 1.Disable JavaScript, clear the cache 2.Display any page that contains a link with target="_blank" that is NOT visible with View Source, such as a link imbedded in a frameset. 3.Hold down the Command modifier key (new window/tab key), and click the link. Actual Results: Two identical tab windows are opened. Expected Results: Only one tabbed window Windows systems will probably have to use Tools->Options to change Content disabling Javascript, and to Clear Cache (Advanced->Network). I found that gmail notifications from Mozilla or Bugzilla are the easiest to demonstrate the bug.
I'm unable to edit the original, which would include "turn ON Javascript" or "Enable Javascript" to get the bug. In trying to describe it, I mixed in what actually works, which is when framesets aren't involved. Gmail uses framesets when Javascript is ENABLED, and that fails (demonstrates the bug). Gmail uses straight html when Javascript is Disbaled, and that works (only one tab opened).
Are you sure this is just target="_blank"? It sounds like a dup of bug 262376, which is specific to Gmail and involves JavaScript.
Yes, I'm sure it isn't a dup. Bug 262376 says it opens a tab AND a window. What I'm reporting is specifically TWO TABS. I wish I could edit Steps to Reproduce 1. Enable Javascript, clear the cache. How do you edit your own submission?
> Bug 262376 says it opens a tab AND a window. What I'm reporting is specifically TWO TABS. Perhaps the difference is because of differing "New pages should be opened in:" settings in Preferences > Tabs? Some pages opened by JavaScript are subject to that pref. > I wish I could edit Steps to Reproduce You can't edit Bugzilla comments, including comment 0 (the initial description). Your update in comment 1 is fine.
I'm also fairly sure this isn't just a Gmail problem. Safari correctly tells me when I mouse-over the response link that it will go to a new window. View Source shows the same frameset logic as Firefox, and it is the browser that displays the window with the link, and responds when I click the link, not Gmail.
I just switched my Tabs preference to New Window instead of New Tab. YES, it does act just like Bug 262376, but I didn't find that in searching the bug list because it didn't mention TWO and TAB in the same heading. Therefore, I thought this was unique. I still say Bug 384613 and Bug 279223 have merit.
> I still say [bug 279223 has] merit. Sure, but that's entirely orthogonal to Gmail's improper use of JavaScript.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
I've read several of the related links, and I'm at a loss trying to understand why Safari gets it right with Gmail, and Firefox doesn't. If Gmail was doing something improper, wouldn't Safari have the same problem?
I am experiencing the same bug which is not related to Gmail. Clicking on a link with target="_blank" opens two new tabs, right-clicking a link and selecting "Open link in new tab" only opens one tab as expected. Reproduced this issue on Ubuntu 16.04, 14.04 and Android. These are my steps to reproduce: 1. Open https://denehyg.github.io/reveal.js-menu/ 2. After page is loaded press 'm' to open the slide-out menu 3. Click on "Custom" in the top of the slide-out menu 4. Click on the "Reveal.js" link at the bottom of the slide-out menu For me this doesn't look like a duplicate of bug 262376 and I suggest to reconsider the status of this bug.
You need to log in before you can comment on or make changes to this bug.