Closed
Bug 13334
Opened 25 years ago
Closed 25 years ago
[feature] Click on menu items disappears submenu
Categories
(Core :: XUL, defect, P2)
Core
XUL
Tracking
()
VERIFIED
FIXED
M16
People
(Reporter: cpratt, Assigned: mikepinkerton)
References
Details
(Keywords: platform-parity, regression, Whiteboard: 2 days TFD 4/14)
Build ID: 1999090808
Platform: RH Linux 6 (not seen in Win32 using 07-Sep-99 build)
To reproduce:
- Launch apprunner
- Click on Bookmarks to drop down that menu.
- Click on Search.
- Click once on Search every few seconds.
Result: You get into a rhythm in which every other mouse click will disappear
the Search submenu. That is, the mouse clicks act as an on/off switch for the
submenu.
Expected result: The submenu should always be displayed. Subsequent clicks
on the same submenu header should not visually do anything at all.
Updated•25 years ago
|
Assignee: trudelle → saari
Comment 1•25 years ago
|
||
reassigning to saari, cc pavlov
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M11
Updated•25 years ago
|
Assignee: saari → pavlov
Status: ASSIGNED → NEW
Comment 2•25 years ago
|
||
Pav, I'm tossing this at you in the hopes that you can deal with it before I can
:-)
Comment 3•25 years ago
|
||
mass-moving most m11 bugs to m12
Comment 4•25 years ago
|
||
I can't repro this on Win and I don't think I can on Linux either. The
behaviour I get is that the menu totally disappears when I click the Search, and
that is bug #15526, which you've seen. Probably related problems.
Comment 5•25 years ago
|
||
No, can't repro on Linux. I'm running Debian Potato. This is build 1999112208.
I see bug #15526 behaviour instead, but not the click-thru part. When clicking
thru on Linux, what's underneath is NOT clicked, but I do notice it doesn't get
mouseover, but that's another bug.
Comment 6•25 years ago
|
||
Mass-moving non-PDT+ bugs to M13
Updated•25 years ago
|
Target Milestone: M13 → M14
Comment 7•25 years ago
|
||
I don't think is
The correct behavior (like Motif 2.x and Windows, OS/2) should be:
click item -> submenu appears
click item again -> submenu disappears
Unlike windows, it should work for secondary submenus too.
This bug is related to #16876
Comment 8•25 years ago
|
||
The problem is you can either have popup on mouseover or toggle, but not both,
or else you get a race condition where a mouseover followed by a click may or
may not leave up the submenu. Under Windows for example, base menus have no
mouseover but have a toggle, whereas submenus have mouseover but no toggle. Is
suggest this is the best for the user, even if it is inconsistent.
Comment 10•25 years ago
|
||
If I click on the 'Search' menu item with mouse, the whole 'Bookmarks' menu is
dismissed. I do not see the submenu going on/off. Used M13(2000012520) and
M14(2000012609) builds on Linux.
Comment 11•25 years ago
|
||
this is not limited to linux --i see this on all three platforms. updated
summary/platform info. tested with the following M13 comm bits:
mac 2000-01-26-03
linux 2000-01-25-20
win 2000-01-25-20
OS: Linux → All
Hardware: PC → All
Summary: [PP] Linux - Click on menu items disappears submenu → [4.xP] Click on menu items disappears submenu
Comment 13•25 years ago
|
||
If you're going to make this xp, you'll want to dupe bug #15526 as this
previously covered this on windows (except the click passes through the menus
when they dismiss).
I'm not sure this as it stood in the original report was a dupe of that, but the
latest descriptions are of bug #15526 behaviour.
Assignee | ||
Comment 16•25 years ago
|
||
this the the behavior i see:
macOS: clicking the parent closes the entire menu (parent + hierarchical).
winNT: clicking the parent does nothing no matter how many times you click.
linux (gtk): selects the first item of the submenu. submenu remains open no
matter how many times you click.
So regardless, the popup should not toggle as no platform i see does that. cc'ing
trudelle.
Comment 17•25 years ago
|
||
This bug was erroneously tagged beta1, removing that and the PDT+ designation,
and moving to m15
Since these are XP menus, we may leave some PP, and therefore some 4xp,
differences unresolved. In such cases, we should probably default to Windows-like
behavior, since it is the largest userbase, and since even Mac menus are
gravitating towards Windows behavior over time.
Comment 18•25 years ago
|
||
My build 2000020214 still dismisses submenus on GTK.
Updated•25 years ago
|
Summary: [4.xP] Click on menu items disappears submenu → Click on menu items disappears submenu
Assignee | ||
Comment 20•25 years ago
|
||
hyatt and i looked at this one tonight and it's pretty hairy. Essentially, the
menu rollup listener impl for each platform only knows about the current widget.
Any clicks outside that widget will cause the entire chain to disappear and the
system to be reset to nothing active. This is also the cause of why when you
click in the menu header of a menu that is visible (in the menubar), it will
deselect and the rollover feedback on the menu header will go away.
What we need to do here is have a stack of widgets that the rollup listener can
check against (not just a single, current, widget) to see if the click is outside
of all of them.
This is so M15, at least.
Assignee | ||
Comment 21•25 years ago
|
||
*** Bug 15526 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 22•25 years ago
|
||
*** Bug 26757 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 23•25 years ago
|
||
*** Bug 28041 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 24•25 years ago
|
||
*** Bug 29297 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 25•25 years ago
|
||
*** Bug 29402 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•25 years ago
|
Priority: P3 → P2
Summary: Click on menu items disappears submenu → [feature] Click on menu items disappears submenu
Assignee | ||
Updated•25 years ago
|
Whiteboard: 2 days
Comment 26•25 years ago
|
||
Both mac and windows behavior make sense.
I'd like automatic menu mouse tracking without mouse press to be optional,
because it is very annoying sometimes...
When it is on, windows behavior makes most sense. (no dismiss of any menus on
click).
When it is off, mac behavior makes sense. Click to activate submenu, click to
dismiss it.
The toggling behavior was also present on Motif 2.x
In any case, dismissing the menu and any parent menus is not desired.
Comment 27•25 years ago
|
||
The important thing to me is not whether the second click on the same menu item
toggles visibility of that submenu (though I'd rather it didn't), but that a
click on a different item bring up its submenu (right away, no delay) rather
than making the whole menu hierarchy disappear. Then I can tune the submenu
delay long (well, if Pav lets me make it prefable -- right now it's hardwired in
nsLookAndFeel.cpp) to get Motif-style behavior.
Comment 28•25 years ago
|
||
It is designed to do that already. This bug is just making the whole menu close
up early so that you never see that. :)
Comment 29•25 years ago
|
||
*** Bug 32075 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 30•25 years ago
|
||
*** Bug 33721 has been marked as a duplicate of this bug. ***
Comment 31•25 years ago
|
||
Adding myself to CC list
Comment 32•25 years ago
|
||
akkana: I agree :) (delay=3600sec :)
(It would be nice if the click toggles though).
Comment 33•25 years ago
|
||
The personal submenu delay tuning is in ... add a line like
user_pref("ui.submenuDelay", 3600000);
to your prefs.js or user.js. So once this bug is fixed, everything should work.
Comment 34•25 years ago
|
||
*** Bug 29867 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 35•25 years ago
|
||
back to m16, won't get to this by m15.
Target Milestone: M15 → M16
Comment 36•25 years ago
|
||
*** Bug 35182 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•25 years ago
|
Whiteboard: 2 days → 2 days TFD 4/14
Comment 37•25 years ago
|
||
*** Bug 35460 has been marked as a duplicate of this bug. ***
Comment 38•25 years ago
|
||
*** Bug 29867 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 39•25 years ago
|
||
fixed.
Comment 40•25 years ago
|
||
What builds will this start appearing in? I still notice the problem in build
2000041406 for Win32
Assignee | ||
Comment 41•25 years ago
|
||
really marking fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 42•25 years ago
|
||
Reopening.
This worked on yesterday's 20000416xx build(s), but the same problem is back
with 2000041705: click on submenu item dismisses the entire parent menu.
regression.
Comment 43•25 years ago
|
||
hmm. nevermind, that was odd....when I downloaded the nightly build, all the
changes from the previous (couple of?) builds had been gone, though the Build ID
denoted that it was, in fact, the latest nightly. In reality, it really seemed
to be from like a week ago. Very strange...good thing I didnt go around and
reopen like 20 bugs :)
Marking fixed...
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Comment 44•25 years ago
|
||
Interesting -- I saw the same thing with a 4/14 build a friend downloaded off
mozilla.org (it had the right timestamp but lacked several fixes that should
have been in 4/14).
Comment 45•25 years ago
|
||
sounds like the wrong build got posted or somethin...
Comment 46•25 years ago
|
||
The reason is some of the nightly builds are M15 builds and some of the nightly
builds are M16 builds as a feature freeze is on for M15 all new feature work
goes into the M16 tree.
However it's impossible to see from the /pub/mozilla/nightly/latest/ directory
whether you've got a M15 or a M16 build (unless you're using a Mac build where
the milestone is contained in the filename).
You can see if you've got a M15 or an M16 build by going to
http://ftp.mozilla.org/pub/nightly/latest/ and see if your build ID has an M15
or and M16 after it (perhaps this information should be added after the build ID
displayed on Mozilla?).
It's likely the M15 builds won't have this fix but the M16 ones will.
Comment 47•25 years ago
|
||
Hmm remove the latest part from that URL to see the individual directories where
the nightly builds are, it should have read:
You can see if you've got a M15 or an M16 build by going to
http://ftp.mozilla.org/pub/nightly/ and see if your build ID has an M15
or and M16 after it....
Updated•25 years ago
|
Status: RESOLVED → VERIFIED
Comment 48•25 years ago
|
||
verif fixed on winNT and linux, using opt comm bits 2000.04.21.09 (m16). not
really an issue on mac (since the main menu is native and behaved that way in
4.x anyhow).
You need to log in
before you can comment on or make changes to this bug.
Description
•