Closed
Bug 430310
Opened 16 years ago
Closed 15 years ago
Click event fires for the document object when a contextmenu is displayed
Categories
(Firefox :: Menus, defect)
Firefox
Menus
Tracking
()
RESOLVED
DUPLICATE
of bug 184051
People
(Reporter: kloots, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.1 Safari/525.18 Build Identifier: Firefox 2.0.0.14 (Windows), Firefox 3 B5 (Mac and Windows) In Firefox 2 for Windows and Firefox 3 (Mac and Windows) when the display of the browser context menu is triggered, the document object ends up firing a "click" event, even though the DOM element that was the target of the "contextmenu" event didn't fire a "click" event. For the other browsers that support the "contextmenu" event (IE and Safari) as well as Firefox 2 for Mac OS X, the "click" event doesn't fire for the document object. Here is an example illustrating the bug: http://yuiblog.com/sandbox/yui/v251/examples/menu/context-menu-bug-report.html Considering the behavior of the other browsers that support the "contextmenu" event, this seems like a bug in Firefox that should be fixed. Reproducible: Always Steps to Reproduce: 1. Add a click event handler to the document and to an element that is a child of the document object 2. Trigger the display if the browser's context menu on the element that is a child of the document object 3. Notice the click event handler is not called for the element that is a child of the document object, but is called for the document object itself Actual Results: The click event handler is called for the document object. Expected Results: The click event handler should not be called for the document object as the "click" event never fired for the element that was the original target of the "contextmenu" event.
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
•