Closed
Bug 216722
Opened 22 years ago
Closed 21 years ago
Inital focus in Help|About Mozilla Firefox should be "OK"
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
People
(Reporter: grant.abraham, Assigned: Waldo)
References
Details
(Keywords: fixed-aviary1.0, Whiteboard: fixed0.9)
Attachments
(1 file, 1 obsolete file)
|
655 bytes,
patch
|
mconnor
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5b) Gecko/20030817 Mozilla Firebird/0.6.1+
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5b) Gecko/20030817 Mozilla Firebird/0.6.1+
The inital focus in Help|About Mozilla Firebird should be on the "OK" button
when you first open that dialog.
Reproducible: Always
Steps to Reproduce:
1. Click Help menu
2. Click "About Mozilla Firebird"
Actual Results:
Selection focus was not on the "OK" button.
Expected Results:
Selection focus should default to the "OK" button.
Updated•22 years ago
|
QA Contact: asa
Comment 1•22 years ago
|
||
http://lxr.mozilla.org/mozilla/source/toolkit/content/widgets/dialog.xml#145
focuses the first focusable element in the dialog. In the About dialog, that's
the user-agent textarea, which is readonly but not disabled. We could fix this
bug by making the function in dialog.xml skip readonly elements, but it would be
simpler to make aboutDialog.xml focus the correct element.
Comment 2•22 years ago
|
||
Updated•22 years ago
|
Attachment #133736 -
Flags: review?(blake)
Comment 3•21 years ago
|
||
what happens here is that dialog.xml inhibits the return key in focused textarea
even if it is read-only.
Either, we prohibit readonly textarea from getting the focus in
nsEventStateManager::GetNextTabbableContent (I'd prefer that but I am not sure
whether it is an accessibility pb) or we do the check for the read-only
attribute in dialog.xml in _hitEnter (or we use a <description> instead of a
<textbox> in nsAboutDialog.xul, but I haven't try if it solves the pb)
Thoughts?
note for self (there is a typo in nsEventStateManager: DEBUG_DOCSHEL_FOCUS
instead of ...SHELL...)
Assignee: blake → p_ch
Comment 4•21 years ago
|
||
"readonly" inputs can be tabbed to, selected via keyboard, and copied... that's
one major difference between "readonly" and "disabled".
Comment 5•21 years ago
|
||
Changing _hitEnter wouldn't completely fix the problem in the About dialog
because it would fix Enter but not Space. (I first encountered this bug by
pressing Space.) I think any correct fix has to make the OK button get focus.
Comment 6•21 years ago
|
||
*** Bug 225113 has been marked as a duplicate of this bug. ***
| Reporter | ||
Comment 7•21 years ago
|
||
Wondering if anyone is still working on this.
As an aside, on MSIE6, the about dialog defaults to the okay button.
Comment 8•21 years ago
|
||
confirming.
Firebird 0.8.0+ (20040120) on XP
Comment 9•21 years ago
|
||
Comment on attachment 133736 [details] [diff] [review]
patch: make aboutDialog.xul focus the OK button
Pierre should review this since he assigned the bug to himself and Blake hasn't
been around for months.
Attachment #133736 -
Flags: review?(blake) → review?(p_ch)
Comment 10•21 years ago
|
||
Comment on attachment 133736 [details] [diff] [review]
patch: make aboutDialog.xul focus the OK button
bitrotten. Jesse, do you want to make a new patch? You'd have to tweak the new
aboutDialog.js.
Attachment #133736 -
Attachment is obsolete: true
Attachment #133736 -
Flags: review?(p_ch)
| Assignee | ||
Updated•21 years ago
|
Summary: Inital focus in Help|About Mozilla Firebird should be "OK" → Inital focus in Help|About Mozilla Firefox should be "OK"
| Assignee | ||
Comment 11•21 years ago
|
||
The same patch as before, but now applied to aboutDialog.js.
| Assignee | ||
Updated•21 years ago
|
Attachment #141837 -
Flags: review?(p_ch)
| Assignee | ||
Comment 12•21 years ago
|
||
I've managed to get access to a computer for a sec, so nominating a few polish
bugs for Firefox 1.0...
Flags: blocking1.0?
Updated•21 years ago
|
Flags: blocking1.0? → blocking1.0+
Comment 13•21 years ago
|
||
Comment on attachment 141837 [details] [diff] [review]
Updated and unbitrotted
right line, wrong spot. (if you're going to monkey with focus, do it after
everything else)
r=me with that
Attachment #141837 -
Flags: review?(p_ch) → review+
Updated•21 years ago
|
Assignee: p_ch → jwalden+bmo
Whiteboard: checkin0.9
Comment 14•21 years ago
|
||
Fix checked in on the aviary branch and on the trunk.
Comment 15•21 years ago
|
||
I moved the call to the end of the init function, where it belongs.
resolved FIXED
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Whiteboard: checkin0.9 → fixed0.9
Updated•21 years ago
|
Keywords: fixed-aviary1.0
You need to log in
before you can comment on or make changes to this bug.
Description
•