Closed Bug 272314 Opened 20 years ago Closed 17 years ago

google-store.com - Javascript used to disable/replace context menu confuses middle mouse button click with right click

Categories

(Tech Evangelism Graveyard :: English US, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla.daniboy, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

In sites using javascript to disable the right-click context menu, clicking with
the middle mouse button anywhere in this site (for example, a link so it will
open in a new tab, if this setting is used) will evoke the script even thought
you didn't right click

Reproducible: Always
Steps to Reproduce:
1. Go to the example site (http://www.google-store.com/index.php) (not
www.googlestore.com without the score as this is a different site)
2. Middle click on any link to open it in a new tab

Actual Results:  
The link was indeed open in a new tab, but the script which produces an alert
("This function is disabled!") also ran.

Expected Results:  
The link should open in a new tab, and no script should be running

This is especially annoying, for example, in a site that uses it's own
javascript context-menu
example: http://www.milonic.com/menusample27.php
if you try middle clicking on a link it will open the javascript context menu.
This is just a bug in the script.  It puts up that alert explicitly for a click
with any mouse button other than the left one (middle, right, any other buttons
on 5-button mice, etc, etc).

No Mozilla bug here.
Assignee: events → english-us
Component: Event Handling → English US
OS: Windows XP → All
Product: Core → Tech Evangelism
QA Contact: ian → english-us
Hardware: PC → All
Summary: Javascript used to disable/replace context menu confuses middle mouse button click with right click → google-store.com - Javascript used to disable/replace context menu confuses middle mouse button click with right click
Version: Trunk → unspecified
I don't see any scripts doing any click-catching on that page any more at all. FIXED.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.