Closed Bug 280653 Opened 20 years ago Closed 20 years ago

When onContextMenu returns false, context menu shouldn't appear

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: timwi, Assigned: bugzilla)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) Gecko/20041110 Firefox/1.0 StumbleUpon/1.999
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) Gecko/20041110 Firefox/1.0 StumbleUpon/1.999

When the JavaScript code inside an onContextMenu attribute returns false, a
context menu shouldn't appear.

See the following attachment for an example.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
Context menu appaers.

Expected Results:  
Context menu should not appear.
Attached file Test case
Test case. Right-clicking the text should not produce a context menu.
Works For Me.
Of course I have to be stupid enough to let javascript disable context menu
(options -> web features -> javascript -> advanced) but if I actually allow JS
to do that, the testcase will not produce a context menu.

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Oh. Oops. :-)

My apologies.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: