Closed Bug 109167 Opened 23 years ago Closed 23 years ago

Focus switches when typing as images are loaded

Categories

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

x86
Windows 98
defect
Not set
minor

Tracking

()

RESOLVED INVALID

People

(Reporter: nothimtheotherguy, Assigned: joki)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.5) Gecko/20011011
BuildID:    2001101117

Go to the above URL. If you're on a less-than-speedy connection (45K dialup) the
form will layout before the two Yahoo Mail images appear (the ones with the
girls in front of the planet). If you type your Yahoo ID then begin typing your
password the focus will suddenly switch to the end of the Yahoo ID as soon as
the images are finished loading, which causes the end of the password you're
typing to be on the end of the ID.

Reproducible: Always
Steps to Reproduce:
1. Got the URL on a dialup connection
2. Type in an ID and begin typing the password as the images are loading
3. Focus switches to end of ID whenever images are loaded

Actual Results:  Final part of password entered as part of ID

Expected Results:  Loading images should *not* change the focus! Focus should
have stayed where it was: the password.
This page has the following code on the body tag:

onload="document.login_form.login.focus();"

That code is what's changing the focus.

Marking invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
QA Contact: madhur → rakeshmishra
QA Contact: rakeshmishra → trix
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.