Closed Bug 227713 Opened 21 years ago Closed 21 years ago

General ICON incorrectly highlighted in Tools->Options

Categories

(Firefox :: Settings UI, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

VERIFIED FIXED
Firebird0.8

People

(Reporter: wgianopoulos, Assigned: mconnor)

References

Details

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031206 Firebird/0.7+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031206 Firebird/0.7+

Now that the tools->options remembers what options window you looked at last
time instead of always coming up with the General Window, a bug has arisen where
if the remembered window is other than General, the General ICON is incorrectly
colored Light blue.  This is very ugly looking and confusing to users.  I
suggest that this either needs to be fixed for 0.8, or we should go back to
having Tools->Options always open the general Window first.

Reproducible: Always

Steps to Reproduce:
1. Use the default theme
2. Go to Tools->Options 
3. Select any Icon other than General
4. Press cancel to dismiss the Options window
5. Go To Tools->Options a second time
Actual Results:  
The General Icon is incorrectly colored a light-blue.

Expected Results:  
The General Icon background should be white.
I forgot to mention that although this appears to be part of the same issue as
bugs 221585, 221687 and 201494, I have purposely opened a seperate bug on this
single aspect of the issue to address what I feel needs to be fixed for 0.8.
Flags: blocking0.8?
Confirming and lowering priority. It's really a minor thing.
Severity: normal → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
Exaclty how is this bug different from bug 221585?
This one is about the General button and the last selected button both being
blue when you open the Options dialog. The problems described in bug 221585 are
different, but both bugs will likely be fixed by the same patch.
This is caused by :focus. The code in pref.xul in the second inline script
element (which executes during loading) focuses the same button as the selected
one. However it looks like when the window finishes loading, the focus is reset
to the first control, so the original attempt to set focus is effectively ignored.

A simple fix for this is to move the line button.focus(); from the second inline
script to the last line of the Startup() function in the first inline script
(though I'm a bit dubious about how good an idea it is to define a var in one
block and use it in another, it does work). This is assuming that resetting the
focus is a standard part of window loading, I can't find any code that is
manually resetting focus but I might have missed something.
Re comment 3 and comment 4.  No, the idea of this bug was so that they would NOT
both be fixed by a common patch.  There are complicated underlying issues with
fixing bug 221585, which is actually a dupe of bug 201494 and has been around
since dirt.  The reason so many people are seeing the issue now is that the
change in the way the Tool->Options window opens, creates a new, highly visible,
instance of this very old bug.

The purpose of opening this bug is to create a vehicle for removing this highly
visible issue and leaving bugs 221585, 201494 there to work on the underlying
cause.  The intent was to get the incorrect hover highlighting of the general
ICON issue resolved for the 0.8 release becuase it is confusing to users
(especialy those with 256 color monitors or who are partially vision impared so
the selected and hover colors look the same) and it is highly visible.

There are 3 ways to fix this bug without fixing bug 221585 and 201494.

1.  Go back to having Tools->Options always open the General window.
2.  Somehow fix just the Tools->Options so that when it first comes up the
incorect hover highlight is on the selected ICON and not the general ICON.
3.  Remove the hove hightlighiting form the Tools->Options altogether.
not really a blocker, and bug 201494 and bug 221585 are not the same bug.  part 
of the initial bug report in the second bug covers the first bug, but they're 
not truly duplicate (what I should do is file a new bug explaining all the 
relevant issues and dupe both of those bugs against it to simplify things).

the other bugs are really screwups with how :hover and :focus works, there's 
hacks but they don't fix all other themes so I haven't attached them to any bug.

taking this one, probably will attach a patch based on pike's comments tonight 
(thanks again pike, you rock!)
Assignee: blake → mpconnor
confirming on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b)
Gecko/20031208 Firebird/0.7+
mpconnor are you still intending to attach a patch for this bug? If you want me
to do it I will but I'm not too sure on the best way, i.e. just move
button.focus(); or move the declaration of button up to the first block as well
to make it more readable?
Attached patch evil (obsolete) — Splinter Review
evil is mostly in the mouseover handler that prevents the click+drag
highlighting bug from happening under the default theme.  If there's a better
way of fixing this without a bunch of onmousedown/onmouseup event handlers I'd
be glad to hear it.

I don't think that the button.focus() move is invalid, whether its pretty or
not
Attachment #137346 - Flags: review?(p_ch)
Blocks: 201494
Status: NEW → ASSIGNED
Target Milestone: --- → Firebird0.8
Comment on attachment 137346 [details] [diff] [review]
evil

problem, this breaks opening with arguments (i.e. from the Download Manager)
Attachment #137346 - Flags: review?(p_ch)
Attached patch less evilSplinter Review
plays nice with opening Options to a specific pane (i.e. download manager)
Attachment #137346 - Attachment is obsolete: true
Attachment #137347 - Flags: review?(p_ch)
Tried the "less evil" patch and it seems to fix all the issues for me!
*** Bug 228411 has been marked as a duplicate of this bug. ***
Mike, I've checked this in sans the mouseover focus... not sure why you needed
that... works fine for me without it. 
Forgot to mark FIXED./ 
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
as a note, the mouseover is a cheap hack to fix 201494 (click+drag on one of the
non-highlighted options, you end up with the same effect as this bug).

but, that bug is still open and isn't as important as this one :)
Status: RESOLVED → VERIFIED
Flags: blocking0.8?
I'm not sure what is going on with this Bug.  The comments say the patch was
checked in minus the onmouseover.  Bonsai shows the onmouseover as being present
in the latest version.  Trunk nightlies behave as if the onmouseover is present.
 0.8 branch builds behave as if it is not. ????
Please ignore comment #18.  This appears to be intentional.
For the record, the onmouseover also fixes the problem of incorrect
hightlighting if you right-click on a non-slected icon.
Comment on attachment 137347 [details] [diff] [review]
less evil

removing obsolete request
Attachment #137347 - Flags: review?(p_ch)
*** Bug 201494 has been marked as a duplicate of this bug. ***
sorry for bugspam, long-overdue mass reassign of ancient QA contact bugs,
filter on "beltznerLovesGoats" to get rid of this mass change
QA Contact: mconnor → preferences
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: