Open Bug 1067886 Opened 10 years ago Updated 2 years ago

Disabled buttons opens context menu on right click but the contextmenu event is not fired

Categories

(Core :: DOM: Events, defect, P5)

35 Branch
x86_64
Windows 7
defect

Tracking

()

People

(Reporter: magnuskenneth, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0
Build ID: 20140915030204

Steps to reproduce:

1. Open this jsfiddle example http://jsfiddle.net/3zw2jc2h/4/
2. Right click the enabled button (which is named Enabled)
3. Right click the disabled button (which is named Disabled)



Actual results:

When right click on the enabled button an alert and the native context menu opened

When right click on the disabled button the native context menu opens but the alert did not open



Expected results:

The alert should open when right click on the disabled button (since the native context menu opens and I open an alert on the contextmenu event).

Or the native context menu should not open on right click on the disabled button and  no context menu event should be fired (as the behavior is on e.g. Chrome).


I found this bug in Firefox version 32.0.1 and I can reproduce it in Firefox Nightly 35.0a1 (2014-09-15).
Doesn't work in Chrome and IE too.
> as the behavior is on e.g. Chrome

As Paul said, Chrome's behavior is the same as ours.  At least on Mac.

Fundamentally, this is related to bug 329509, I bet.
Depends on: 329509
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Assignee: nobody → mcaceres
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Assignee: mcaceres → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.