Open
Bug 40068
Opened 25 years ago
Updated 2 years ago
click to cancel context menu triggers onmouseup
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Tracking
()
NEW
Future
People
(Reporter: jruderman, Unassigned)
References
()
Details
1. load attachment to bug 39985
2. right-click in the light gray area (some events should come up)
3. with context menu still up, right-click somewhere else in the light gray area
actual result: onmouseup triggers
expected result: no more events trigger
Comment 1•25 years ago
|
||
Yep, this happens using the 2000-05-22-08-M16 nightly binary on WinNT.
http://bugzilla.mozilla.org/showattachment.cgi?attach_id=8919
I'd guess that it would be the responsibility of the context menu code to
fully consume the event that it uses to dismiss the menu, if it is not
to be passed to the objects underlying it.
See bug 15640, "clicking image in content area to close xul popup loads url",
M19, of which this might be a DUP.
Comment 2•25 years ago
|
||
Actually I would disagree with the expected results here. The mousedown is used
to dismiss the menu and the afterward the mouseup occurs.
However, I would suggest the based on 4.x behavior and based on how the initial
menu comes up that we should in fact get all the events and that the second
right click should in fact immediately bring up a new context menu at the new
location. Reassigning this to context menu guys.
Assignee: joki → saari
Reporter | ||
Comment 3•25 years ago
|
||
Ok, *if* the second right-click were to bring up a new content menu, *then* it
would make sense to trigger onmousedown/onmouseup/onclick events. In most
Windows programs, the second right-click does bring up a new context menu.
I still think it doesn't make sense to give only onmouseup if all the click
does is cancel the menu (which is what mozilla does for both left- and right-
clicks that cancel a context menu). It should either be a full click or
nothing. In most Windows programs, a left-click that cancels a context menu
also functions as a normal left-click.
Comment 4•25 years ago
|
||
Okay, this is one of the many window trasition event bugs.
Status: NEW → ASSIGNED
Target Milestone: --- → M18
Updated•25 years ago
|
Target Milestone: M18 → Future
Comment 5•25 years ago
|
||
Mass update: changing qacontact to ckritzer@netscape.com
QA Contact: janc → ckritzer
Comment 6•25 years ago
|
||
Since German has decided that clicks that dismiss menus should have no other
effect (see bug 21390, "Clicking on Widget or link does nothing if menu open"),
the same logic probably caries over to context menus...
Comment 7•25 years ago
|
||
Ah, should have thought of this a minute ago, but the same onmouseup event
is logged if a click in the light gray div dismisses a menubar menu. So this
affects *all* menus.
Comment 9•24 years ago
|
||
Reassigning QA Contact for all open and unverified bugs previously under Lorca's
care to Gerardo as per phone conversation this morning.
QA Contact: lorca → gerardok
Reporter | ||
Comment 11•24 years ago
|
||
See also bug 89923, click to cancel menu counts toward double click.
Updated•23 years ago
|
QA Contact: madhur → rakeshmishra
Updated•22 years ago
|
QA Contact: rakeshmishra → trix
Comment 12•22 years ago
|
||
The desired behaviour documented in bug 66834 comment 77, the onmouseup event
(and the onmousedown event) is correct on windows platforms. In other words,
the event shouldn't be blocked just because a menu is open. For Mac and Unix,
the event should be blocked. I don't have those platforms to test, but it seems
like this may be working correctly? Or fixed? Or fixed just on windows? Or a
duplicate of bugs which were raised later and are being worked on?
Reporter | ||
Updated•19 years ago
|
Assignee: saari → events
Status: ASSIGNED → NEW
QA Contact: trix → ian
Updated•15 years ago
|
Assignee: events → nobody
QA Contact: ian → events
Assignee | ||
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•