Closed
Bug 503026
Opened 15 years ago
Closed 15 years ago
A middle or right mouse button click on element erroneously bubbles as 'click' event to document object even when stopPropagation method is called
Categories
(Core :: DOM: Events, defect)
Core
DOM: Events
Tracking
()
RESOLVED
DUPLICATE
of bug 184051
People
(Reporter: pat+bmo, Unassigned)
Details
(Keywords: regression)
Attachments
(1 file)
780 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5 Middle-clicking or right-clicking on an element with the appropriate stopPropagation method called should not propagate a 'click' event to the document object. If you click (normal left-click) on said element, the event correctly does *not* fire. The bug occurs when you middle or right click on the element and it registers as a 'click' on the document object, ignoring the element's stopPropagation() call on the 'click' event. In tests, these clicks erroneously register on the document object only; lower elements in the DOM are unaffected by this bug. The problem seems to regress to all versions of Firefox (1.5 and 3.5 tested). This bug does not occur in the latest versions of IE, Safari/Chrome, or Opera. Reproducible: Always Steps to Reproduce: Click the Button element with the middle or right mouse buttons. Actual Results: The 'click' event for the Button element fires, but so does the 'click' event for the document object. Expected Results: Clicking the Button with the middle or right mouse button should only trigger the Button's own 'click' event because of the stopPropagation method. Just FYI: Most other browsers (Safari/Chrome, Opera) do not register middle and right mouse button clicks on the document object as 'click' events.
Component: General → DOM: Events
Keywords: regression
Product: Firefox → Core
Version: unspecified → Trunk
Updated•15 years ago
|
QA Contact: general → events
Comment 2•15 years ago
|
||
The title of the bug is wrong. The listener on button element isn't called when middle/right clicking, so .stopPropagation() isn't called. Currently middle/right click fire on document. Mainly because of some old backwards compatibility. The behavior should be changed.
Updated•15 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•