Closed Bug 172194 Opened 22 years ago Closed 22 years ago

Initial focus in password dialogs messed up

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Biesinger, Assigned: aaronlev)

References

()

Details

Attachments

(1 file)

[guessing at the component]
1. go to above url
2. notice focus is not in the username field

build id 2002100109, win98

this is a regression.

also happens for news username/password, like news://news.cis.dfn.de/at.linux

probably also for IMAP/POP password prompts, but I can't check right now.
To clarify, the focus is on the OK button
Comment on attachment 101461 [details] [diff] [review]
Only focuses first button if no textfields -- otherwise the old default behavior occurs, which focuses the first control

r=sgehani
Attachment #101461 - Flags: review+
Comment on attachment 101461 [details] [diff] [review]
Only focuses first button if no textfields -- otherwise the old default behavior occurs, which focuses the first control

sr=bryner
Attachment #101461 - Flags: superreview+
checked in
Status: NEW → RESOLVED
Closed: 22 years ago
Component: Accessibility APIs → Keyboard Navigation
Resolution: --- → FIXED
Comment on attachment 101461 [details] [diff] [review]
Only focuses first button if no textfields -- otherwise the old default behavior occurs, which focuses the first control

>-  if (setCheckbox(gCommonDialogParam.GetString(1), gCommonDialogParam.GetInt(1)))
>+  if (setCheckbox(gCommonDialogParam.GetString(1), gCommonDialogParam.GetInt(1)) &&
>+      gCommonDialogParam.GetInt(3) == 0)  // if no text fields

Unfortunately I didn't have sufficiently reliable internet access otherwise I
would have posted my solution which only checks GetInt(3) although I expect
that the extra test doesn't hurt.
Component: Keyboard: Navigation → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: