Closed Bug 216020 Opened 18 years ago Closed 18 years ago

Forms in a just loaded pages get the text input focus from the tab you are working at

Categories

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

x86
All
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 124750

People

(Reporter: joan.antoni.farre, Assigned: saari)

Details

User-Agent:       Mozilla/5.0 (Windows; U; WinNT4.0; es-ES; rv:1.4) Gecko/20030624
Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; es-ES; rv:1.4) Gecko/20030624      ----    It happens in different versions of Mozilla (1.3, 1.4...) in different languages (en, es-ES) and in different Operating Systems (Windows, Linux)

If you are writing text in a form while another page, also with a form with text
input fields, is loading "in background" in a different tab, when the background
page finishes loading, its form gets the text input focus. So, you see that
nothing is written while you type, but, if you change to the other tab, you find
there the text you were blindly typing.

*Important* If you were typing a password, the password may get written in a
visible field and, anyway, if you blindly press return, your password could be
visibly submitted to a wrong place (it happened to me some times) and/or be
saved by the auto form fill feature. So it can be considered also a security issue

Reproducible: Always

Steps to Reproduce:
1. Open a page with a form with text input fields. For example, www.hotmail.com
2. When the first page is completely loaded, open another one in a new tab, with
also a form with text input fields.
3. Switch to the first page tab
4. Start writing in any text input field while the other page finishes loading

Actual Results:  
When the second page finishes loading, the focus is there and you don't see what
you are writing. If you switch to the second page tab, you can see what you were
writing in the text input field which got the focus.

Expected Results:  
You should have been able to go on writing in the foreground (first page) tab,
and the focus should have gone to the suitable input field when you changed to
the background (second page) tab, and only then.

*** This bug has been marked as a duplicate of 124750 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.