Closed Bug 24482 Opened 25 years ago Closed 24 years ago

Context menus behave stragely when right-clicking elsewhere with one up

Categories

(Core :: XUL, defect, P3)

x86
Windows NT
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: sidr, Assigned: mikepinkerton)

References

Details

* Overview:
If a context menu, after being brought to life with a swift right click,
is moved to a different position before being used by right-clicking elsewhere
on the page, a left-click on one of the items on the menu does nothing.
This scenario could easily happen if the user was trying to right-click on a
link or image, missed, and tried again, or just wanted the menu to appear
elsewhere.

* Steps to Reproduce:
1. Start mozilla and allow any page to load.
2. Click right mouse button *anywhere* to bring up the context menu
3. Click right mouse button anywhere outside it to pop another context menu
   up at another position (does not matter if the object underneath is the
   same or different)
4. Select a non-greyed menu item in it with the LEFT mouse button

* Actual Results:
Nothing will happen.

* Expected Results:
Whatever action would normally be taken by the selected item in the context of
the object right-clicked on the second time.

* Tested with:
2000-01-19-08-M13 nightly binary on Windows NT 4.0sp3

* Additional Information:
If the first context menu is dismissed by left-clicking on the background
(or presumably by ESC when bug 20019 is fixed), before the second context
menu is brought into being by the second right-click, a left-click on an
item in the second context menu works normally.

This bug found while trying variations on the steps in bug 16592 --
Oddly, if an item in the *third* context menu that pops up after following
the steps in that bug exactly is left-clicked, it works normally.
Assignee: saari → pinkerton
Target Milestone: M15
Taking menu/popup bugs.
*** Bug 23698 has been marked as a duplicate of this bug. ***
BULK MOVE: Changing component from XP Menus to XP Toolkit/Widgets: Menus.  XP 
Menus component will be deleted.
Component: XPMenus → XP Toolkit/Widgets: Menus
updaing summary to make it easier to find.
Summary: Context menu does not work if repositioned before use → Context menus behave stragely when right-clicking elsewhere with one up
*** Bug 24853 has been marked as a duplicate of this bug. ***
bulk accepting xpmenu/popup bugs. sigh.
Status: NEW → ASSIGNED
*** Bug 25157 has been marked as a duplicate of this bug. ***
i don't see how this differs from 16592. I'm going to mark it as a dupe if you 
don't speak up.
*** Bug 23698 has been marked as a duplicate of this bug. ***
moving all defects not directly related to P0 beta2 features off to M18.
Target Milestone: M15 → M18
Mass moving M18 bugs to M19
Target Milestone: M18 → M19
mass-moving all bugs to m21 that are not dogfood+ or nsbeta2+ or nsbeta2-
Target Milestone: M19 → M21
*spam*: transferring current XP Menu bugs over to jrgm, the new component owner.
feel free to add me to the cc list (unless am the Reporter) of any of these, if
you have any questions/etc.
QA Contact: sairuh → jrgm
Mike: by summary this bug's not a dup of 16592, as that one's about 
activating an item with a right-click, but if right- and left- clicks are meant 
to be equivalent, no, there's no diff. Either way, there's no prob now:

Testing with the 2000-06-23-08-M17 nightly bianry on WinNT, this no longer 
appears to ba a problem.

Current behaviour:
A context menu is invoked by a right-click.
A right or left click elsewhere dismisses the context menu.
A right or left click on an item in the context menu activates it.
No odd behaviour depending on the sequence of clicks before trying to 
activate a context menu item.

If that's all according to spec, this chitinous critter can be called w.f.m.
i think the goal was to have another right click popup another context menu, but
we might as well just punt and say that another click anywhere will dismiss the
menu. it appears the behavior of this has changed over time, and if we want
another context menu to appear on a subsequent right-click, another bug should
be filed (which will probably be futured, mind you).

marking wfm.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
in NN 4.x on Windows a right click outside an existing context menu both
dismisses it and creates a new contex menu at that location, but...

German has decided that clicks cancelling menus should do only that 
(see bug 21390, "Clicking on Widget or link does nothing if menu open"),
so, for consistency, it is better for the 4.x behaviour to *not* continue 
for context menus. Given that, there is no need for another bug.
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.