Closed Bug 270778 Opened 20 years ago Closed 20 years ago

Middle click on links with javascript.popUp

Categories

(Firefox :: Tabbed Browser, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 251137

People

(Reporter: nilesh, Assigned: bugs)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; chrome://navigator/locale/navigator.properties; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; chrome://navigator/locale/navigator.properties; rv:1.7.5) Gecko/20041107 Firefox/1.0

Default middle click behaviour is to load the page pointed by link in a new tab.
But some websites have links which are not simple <a href=""> type, but java
script links which on left click open a new window (or a popup). But as I am a
addict to tabbed browsing, I always middle click on links. After middle clicking
on such likns, firefox opens a new tab and new URL shows something like 
 Javascript:openPopUp('http://www.h.com/a.html','','695','450');


IMO, firefox should be more intelligent, when I click with middle mouse button
on a javascript that is trying to open a popup, middle click should do exactly
same as left click does.

Similarly some links try to execute javascript.void() which opens a new window.
IMO, firefox in such cases should opwn new tab and load the page.

In short, middle mouse click should be aware of javascript

Reproducible: Always
Steps to Reproduce:
1. visit http://www.hindustantimes.com/
2. Scroll down, in right you will find a link for "Photos"
3. Try Left and Middle clicks on image. 
4. Left click will open a popup displaying image
5. Middle click will open a page with no page loaded.



Expected Results:  
Middle click should open a popup (or a new tab and load the contents , which
popup was supposed to show).

*** This bug has been marked as a duplicate of 251137 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.