Closed Bug 1110723 Opened 10 years ago Closed 10 years ago

Middle-click and right-click doesn't bubble in addon created panel content document

Categories

(Core :: DOM: Events, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: archil, Unassigned)

Details

Attachments

(1 file)

13.28 KB, application/x-compressed-tar
Details
Attached file test-addon.tgz
In addon-created panel middle clicks and right clicks doesn't bubble to element. Steps to reproduce: Extract the attached file "test-addon.tgz". Use "cfx run" to run the addon. Click the addon button and then on the panel click the "Click Me" button with different mouse buttons. See the console. What happens is that left-clicking the button will log both "window.click" and "button.click". But middle-clicking and right-clicking on it will log "window.click" only. What should have happened is that both "window.click" and "button.click" should have been logged in console no matter which button you click on the mouse. Note that in all cases: event.target == button is true event.bubbling is true
Summary: Middle-click and right-click doesn't work in addon panel content document → Middle-click and right-click doesn't bubble in addon created panel content document
I found that it doesn't matter if it's in an addon or not. Middle-clicking fires click event in Chrome but not in Firefox. Is this intentional?
middle/right clicks shouldn't show up there. https://www.w3.org/Bugs/Public/show_bug.cgi?id=23240#c21
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
And if you want to change the behavior, please file a spec bug on W3C bugzilla.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: