Closed Bug 440405 Opened 17 years ago Closed 17 years ago

Context menu event is not fired when mouse down handler prevent default action

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

PowerPC
macOS
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: masykora, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; cs; rv:1.9) Gecko/2008052906 Firefox/3.0 Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; cs; rv:1.9) Gecko/2008061004 Firefox/3.0 See testcase in steps-to-reproduce attached bellow. Reproducible: Always Steps to Reproduce: 1. use following testcase <html> <script> function log(text) { document.getElementById("log").innerHTML += '...' + text + '<br>'; } </script> <body onmousedown="log('down'); event.preventDefault()" onmouseup="log('up')" oncontextmenu="log('right click')"> do right mouse click on FF3 Win and than on FF3 Mac, following events are fired: <div id="log"></div> </body> </html> 2. do right mouse click by mouse only and by ctrl+mouse click, only the second works Used SW: both Tiger and Leopard. Actual Results: Context menu should appear. Expected Results: Context menu doesn't appear when onmousedown handler prevent default action by event.preventDefault() or by return false. Please note events are fired in different order, FF3Win: mouseUp-mouseDown-contextMenu, FF3Mac: mouseDown-contextMenu-mouseUp I filed a new separated bug to be more clear than #422021 and #435160, probably they are duplo of this one.
Component: General → Event Handling
Product: Firefox → Core
QA Contact: general → events
Version: unspecified → Trunk
Hi, no news?
Changing majority, many Mac users complaint about it.
Severity: normal → major
I've already commented on this testcase at bug 422021 comment #9. Yes, I get the results you report (at bug 422021 comment #8 and here at comment #0) -- once I remove event.preventDefault(). But you've not shown that this causes any problems. Before you reopen this bug, or open another one, you will need to do the following: 1) Write a clear, detailed and specific description of the problem(s) you've been seeing. If there are multiple different problems, open one bug for each. 2) Provide at least one publicly accessible URL (or testcase) for each problem.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → INVALID
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.