Closed Bug 187391 Opened 22 years ago Closed 22 years ago

Cursor is moved to another tab in the background if it uses javascript to automatically select a field.

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 124750

People

(Reporter: jason, Assigned: alexsavulov)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3a) Gecko/20021212

If you are typing into a form field, I've tried this with textarea and text
fields, and another page is loading in a tab in the background which uses
javascript to automatically select a field, then the cursor is moved to the page
in the other tab.  Now, let me try to be a little less confusing.

Scenario:
You are typing in a comment field of a webpage right after opening a page in a
new tab. That page uses javascript to move the cursor to a field (example,
Google).  The cursor is moved from the active tab where you were typing and is
placed in the other field where you will continue to type.

Reproducible: Always

Steps to Reproduce:
1. Open up a page with a field you can type in
2. Open up another page in a tab in the background, or just start loading and
hurry and click back 
3. Continue typing and the cursor will jump to the other tab.

Actual Results:  
The cursor moves to the text field in the other tab.

Expected Results:  
The cursor should remain in the text field of the active tab.

*** This bug has been marked as a duplicate of 124750 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.