Closed
Bug 137033
Opened 23 years ago
Closed 23 years ago
Chrome buttons remain highlighted after dropdown item selected
Categories
(SeaMonkey :: Bookmarks & History, defect)
SeaMonkey
Bookmarks & History
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: davidstl, Assigned: bugs)
References
Details
(Whiteboard: [adt2])
Attachments
(2 files, 1 obsolete file)
(deleted),
image/gif
|
Details | |
(deleted),
patch
|
bugs
:
review+
bryner
:
superreview+
asa
:
approval+
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9+)
Gecko/20020411
BuildID: 2002041103
If I click the bookmarks button and then go to one of the pages I have
bookmarked, the page loads ok but the Bookmarks button remains highlighted on
the personal toolbar. In previous Mozilla releases, the button was no longer
highlighted.
Reproducible: Always
Steps to Reproduce:
1. Click the Bookmarks button on the personal toolbar
2. Choose one of the sites bookmarked and go to it.
3. Notice how the Bookmarks button remains highlighted
Expected Results: Bookmarks button should lose focus and not be highlighted anymore
Comment 1•23 years ago
|
||
David, what theme are you using? Does this happen n both modern and classic?
Reporter | ||
Comment 2•23 years ago
|
||
Reporter | ||
Comment 3•23 years ago
|
||
I checked it with both classic and modern, and it happens on both. I just
uploaded a screenshot of what it looks like in modern theme.
Comment 4•23 years ago
|
||
*** Bug 137540 has been marked as a duplicate of this bug. ***
Comment 5•23 years ago
|
||
Confirming on 2002041408 on WinXP.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 6•23 years ago
|
||
I'm using release candidate 1 - 2002041711 - and this problem seems to have gone
away.
Reporter | ||
Comment 7•23 years ago
|
||
Now I've upgraded to 2002041903 and the problem is back.
Comment 8•23 years ago
|
||
*** Bug 138282 has been marked as a duplicate of this bug. ***
Comment 9•23 years ago
|
||
This is a trunk only problem. Branch builds don't seem to have this problem.
Comment 10•23 years ago
|
||
Not only the Bookmarks button but also other personal toolbar folder buttons do
behave like that if a bookmark inside them is clicked. At least in trunk build
2002042608 on Win2k.
Another thing I see: the button looses its 'hovered' state (i.e. its border) as
soon as the mouse pointer leaves the html display area (not sure how it is
called officially...) - no matter in which direction. Can you confirm that?
Comment 11•23 years ago
|
||
I'm now seeing this on a branch build.
Comment 12•23 years ago
|
||
confirming on win2k and build 20020427 and later. 2002042406 is the last build
(that I've tried) that doesn't have this problem.
Comment 13•23 years ago
|
||
oh, i've tried 2002042708, 2002042808 and 2002042906.
Updated•23 years ago
|
Keywords: mozilla1.0,
nsbeta1
Comment 14•23 years ago
|
||
Some more precise observations regarding comment #10:
Bookmark folder stays highlighted *as long as you do not move the mouse over
some element of the mozilla window*.
Exempt from this are the area where the html pages are shown - *and the border
to the right of this area, including the scrollbar*.
This means: if you click in a personal toolbar subfolder on a bookmark that is
located somewhere over the html area, the folder will stay highlighted as long
as you move the mouse over ther html area and also will stay when you move the
mouse to the *right* out of the mozilla window. As soon as the mouse moves over
another element of the mozilla window the highlighting disappears.
Similarly a plain bookmark in the personal toolbar stays highlighted/hovered
after clicking as long as you do not move the moues out of the area of that button.
Now it should be easy to find out, where changing a state or something was
forgotten... :-)
Comment 15•23 years ago
|
||
I'm seeing this with build 2002-04-29 branch on WinNT
P.S. It would help if the words "icon" and "toolbar" were included in the Summary.
Updated•23 years ago
|
Summary: Bookmarks button remains highlighted after going to bookmarked page → Bookmarks button in personal toolbar remains highlighted after going to bookmark
Comment 16•23 years ago
|
||
Focus is in the loaded content (as it should be), button just retains the
mouseover appearance.
Comment 18•23 years ago
|
||
A branch build from 24-Apr-2002 12:40 doesn't have this bug, but the build from
25-Apr-2002 12:38 has it. I'm seeing this on WinXP. On trunk builds, this bug
was seen before 24-Apr-2002 meaning that the checkin that caused this was
checked in on the trunk before on the branch.
Keywords: regression
Comment 19•23 years ago
|
||
So it seems like this might have been caused by my checkin of bug 5693.
However, it also seems to be Windows-only. I'm surprised that my checkin would
have caused changes to menus, since menus don't use :hover or :active for their
hover and active effects. However, it is possible. I'm certainly willing to
help someone who can debug the problem.
Keywords: regression
Comment 20•23 years ago
|
||
*** Bug 138849 has been marked as a duplicate of this bug. ***
Comment 21•23 years ago
|
||
Confirming on Win98 RC2 2002051006 with all Themes.
Comment 22•23 years ago
|
||
*** Bug 143902 has been marked as a duplicate of this bug. ***
Comment 23•23 years ago
|
||
*** Bug 143910 has been marked as a duplicate of this bug. ***
Comment 24•23 years ago
|
||
*** Bug 144573 has been marked as a duplicate of this bug. ***
Comment 25•23 years ago
|
||
Does anyone know if this bug is going to be fixed for 1.0?
Comment 26•23 years ago
|
||
*** Bug 145520 has been marked as a duplicate of this bug. ***
Comment 27•23 years ago
|
||
confirming on win2k, rc3 (build: 2002052306)
will this bug make it all the way to 1.0?
Comment 28•23 years ago
|
||
I hope this bug would be fixed for 1.0 release. It is kinda annoying. And would
make 1.0 not so professionnal :-)
Comment 29•23 years ago
|
||
I think I wanted to report the same bug for 1.0 rc3
Just my observation, because I'm not sure whether all of it has been mentioned here:
1. move the mouse over the Bookmarks-icon in the toolbar -> icon is highlighted
as all other menus (e.g. File) do
2. click the icon -> the icon is drawn pressed (or "downlighted")
3. select a bookmark -> the icon changes from pressed to highlighted (and not to
normal as it should)
4. Moving the mouse over any icon, which has a mouse-over effect, brings the
Bookmarks-icon to the normal state (interesting: in tabbed-browsing it is
sufficient to move the mouse over any tab to bring the icon in it's normal state)
The Bookmarks-icon in the menubar behaves correct.
I'm clearly nominating this bug for 1.0!!
Comment 30•23 years ago
|
||
another thing i see (build 2002052406, win2k) is that if you change the order of
the bookmarks listed in the personal toolbar folder, they are shown in the
wrong/old order until you move the mouse out of the html area.
hope it helps!
Comment 31•23 years ago
|
||
and oh! I see this with the "manage bookmarks"-window both open and closed.
that is, if you change the order of the bookmarks, and then, with the
"manage..."-window still open, move the mouse over any part other than the html
area, the order of the bookmarks is updated!
same thing if I change the order and then close the "manage..."-window.
Comment 32•23 years ago
|
||
*** Bug 147689 has been marked as a duplicate of this bug. ***
Comment 33•23 years ago
|
||
*** Bug 146970 has been marked as a duplicate of this bug. ***
Comment 34•23 years ago
|
||
This bug affects buttons that use that hover state. Try going to the sidebar and
opening up Customize Sidebar.
Keywords: mozilla1.0.1
Comment 35•23 years ago
|
||
I can confirm that this happens on Win2k and WinXP. I was very disappointed to
see that this wasn't fixed in time for 1.0. It is a very obvious and annoying
bug that clearly hurts the image of Mozilla. People might think, "If they can't
fix something as little as that in two months, how can they fix more serious
bugs?" This bug is annoying enough to me to keep me from using Mozilla as my
primary browser. I really think this needs to be fixed, ASAP.
Comment 37•23 years ago
|
||
re: dbaron's comment 19: the bookmark toolbarbutton has a class="bookmark-item"
attribute. Therefore, its :hover and :active states are defined in
themes/classic/communicator/bookmarks/bookmarksToolbar.css and in
themes/classic/global/win/toolbarbutton.css but may inherit other style rules.
Comment 38•23 years ago
|
||
dbaron: _moz_menuactive is only used for showing the highlighted state on menu
items. The hover effect on a toolbar button is, in fact, just a :hover rule. I
don't think the proper notifications are happening to take the button out of the
:hover state.
Comment 39•23 years ago
|
||
*** Bug 155642 has been marked as a duplicate of this bug. ***
Comment 40•23 years ago
|
||
This happens with any button that has a dropdown component that extends out of
the button's toolbar. Summary should be changed as it is not bookmarks only, nor
is it restricted to the personal toolbar. It happens to the forward and back
button histories also.
Comment 41•23 years ago
|
||
Changing summary. If you can think of a better way to say it, please do.
Summary: Bookmarks button in personal toolbar remains highlighted after going to bookmark → Chrome buttons remain highlighted after dropdown item selected
Comment 42•23 years ago
|
||
Probably not a necessary additional comment but I believe it happens to the
print button as well. Menus and Menubuttons are affected.
Comment 43•23 years ago
|
||
Nav triage team: nsbeta1+/adt2
Updated•23 years ago
|
Comment 44•23 years ago
|
||
If the mouse point is outside the document when menu was closing, the chrome
window will not receive mouseexit event, so the current hover state will not be
cleared. We should clear the hover state manually.
Updated•23 years ago
|
Keywords: mozilla1.0 → patch
Comment 45•23 years ago
|
||
I wonder if a better and more general approach would be to fire a mouseexit
event on the Windows platform when the menupopup closes, since it seems to be
fired on linux.
Comment 46•23 years ago
|
||
This is a limit of Windows event system. GTK has
enter_notify_event/leave_notify_event that pretty match our
NS_MOUSE_ENTER/NS_MOUSE_EXIT event, but Windows only has "mouse_move".
I'm not sure whether this problem can reproduce on other platform, such as OS2,
Mac. If it's a Windows only problem, we can put those code within a #ifdef
XP_WIN/#endif block. But, in fact, my fix doesn't affect *nix at all.
Comment 47•23 years ago
|
||
Attachment #92567 -
Attachment is obsolete: true
Comment 48•23 years ago
|
||
Bug 147689 which has been marked as a dup to this occured on Mac OS X. It is
not MS Windows only,
Comment 50•23 years ago
|
||
*** Bug 142832 has been marked as a duplicate of this bug. ***
Comment 51•23 years ago
|
||
Windows normally creates NS_MOUSE_ENTER/NS_MOUSE_EXIT events from native mouse
move messages. Why isn't that happening here? Is there a tweak we could do at
the widget level to ensure that these events are fired?
Comment 52•23 years ago
|
||
You can reproduce the problem even by this way:
1) click Bookmarks button;
2) move mouse to highlight whatever a menuitem in the popup;
3) press ESC.
At this time, there is no any native mouse event to be fired. So we can't rely
on mouse event in this case.
Comment 53•23 years ago
|
||
Shouldn't :hover actually be going away as soon as you move the mouse off of
the bookmarks button?
Comment 54•23 years ago
|
||
Not if you want it to act like a "regular" application (on Windows). I think
that the pop-up is a child of the button anyway so that it counts as the mouse
being over the parent.
Comment 55•23 years ago
|
||
I didn't say it shouldn't appear to be depressed, I said I'm not sure if the
:hover pseudoclass should apply. There are other ways to make it appear
depressed, such as using an attribute, like menus and menu items.
Comment 56•23 years ago
|
||
Since bug 5693 fixed, now a widget can inherit the :hover state from its child. See:
http://lxr.mozilla.org/seamonkey/source/content/events/src/nsEventStateManager.cpp#3583
When mouse moves off the button, the menuitem, that is the child of the button,
obtains :hover state, so the button is still hovered.
Comment 57•23 years ago
|
||
Comment on attachment 92686 [details] [diff] [review]
changed some comments
Something still seems wacky here. If the :hover content is removed or hidden,
we should unset the hover state all the way up the content chain. I'd be
surprised if we didn't have code in place to do that; perhaps it's not
triggered in this case.
In the interest of fixing this for 1.1, I'm going to go ahead and sr= this, but
I do believe there's a more generic correct fix.
Attachment #92686 -
Flags: superreview+
Assignee | ||
Comment 58•23 years ago
|
||
Attachment #92686 -
Flags: review+
Comment 59•23 years ago
|
||
Comment on attachment 92686 [details] [diff] [review]
changed some comments
a=asa (on behalf of drivers) for checkin to 1.1
Is someone around that can get this checked in this evening?
Attachment #92686 -
Flags: approval+
Comment 60•23 years ago
|
||
checked into trunk!
modify some comments to fit current situation - still looking for a better
approach.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 61•23 years ago
|
||
This definitely doesn't seem like the correct fix. I remember the day this
started happening -- shouldn't we have reviewed checkins from the day before?
Or has someone done that already?
Comment 62•23 years ago
|
||
blake, see comment 19, I think this started happening after dbaron's check in
of bug 5693. I had a preliminary investigating:
http://lxr.mozilla.org/seamonkey/source/content/events/src/nsEventStateManager.c
pp#3583
- nsCOMPtr<nsIContent> hoverContent = mHoverContent;
- while (hoverContent) {
- if (aContent == hoverContent) {
- aState |= NS_EVENT_STATE_HOVER;
- break;
- }
- nsIContent *parent;
- hoverContent->GetParent(parent);
- hoverContent = dont_AddRef(parent);
- }
if we changed above code to:
+ if (aContent == mHoverContent) {
+ aState |= NS_EVENT_STATE_HOVER;
+ }
also can fix this problem. but of course this is not a good idea.
Comment 63•23 years ago
|
||
Confirming bug "death" on trunk build 2002080304 - WinXP.
Another one bites the dust. Next ? :-)
Thanks to all coders for fixing this - graphically speaking - ugly one.
Comment 64•23 years ago
|
||
a question to dbaron, about the hierarchical :hover
whether parent content should inherit the :hover state from its child
1) even though its frame doesn't contain its child's frame?
2) even though its child is hidden/disabled?
Comment 65•23 years ago
|
||
I was about to mark this VERIFIED, until I realised that I'm using a build from
before the patch was checked in (build 2002080204-TRUNK on Win98SE). Oh well, it
works fine for me, but then maybe it always had....
Comment 66•23 years ago
|
||
This "bug" could remind you; sort of like leaving a drawer to a filing cabinet
you're working with open for a moment. What was the need to get rid of it?
Comment 67•23 years ago
|
||
David, are you sure that you followed the steps in comment 0 strictly? I can
reproduce it using 2002080204-TRUNK on Win2000.
Comment 68•23 years ago
|
||
OK, re-read the instructions, and realised that I was using the "main" Bookmarks
menu rather than the one on the Personal Toolbar (why is it in two places
anyway?). OK, I do see the problem, which is good as my build doesn't have the
patch.
Comment 69•23 years ago
|
||
OK, this time I tested following the instructions exactly, and used a build with
the patch (2002080504-TRUNK). Works fine. Marking Verified.
Status: RESOLVED → VERIFIED
Updated•22 years ago
|
Keywords: mozilla1.0.2
Comment 70•22 years ago
|
||
a=rjesup@wgate.com for 1.0 branch; please change mozilla1.0.2+ to fixed1.0.2
when checked in.
Comment 72•22 years ago
|
||
thanks, timeless!
Comment 73•22 years ago
|
||
verified on Windows, Linux, Mac using the branch build (20021031)
Keywords: fixed1.0.2 → verified1.0.2
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•