Closed
Bug 259279
Opened 20 years ago
Closed 20 years ago
onLoad focus() happens on tabs marked as "background"
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 245502
People
(Reporter: gms8994, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040614 Firefox/0.8 When opening multiple sites in tabs, should one of them have an onLoad event that does a .focus() on a field, that field will be focus()'d even if the tab it's contained in is not selected for viewing. This makes it difficult to browse sites if the onLoad happens *after* another tab has finished generating content. Reproducible: Always Steps to Reproduce: 1. Open multiple tabs to sites, making sure that a latter site has an onLoad .focus() event. 2. Begin typing in a form field on tab 1 before site in step #1 has finished loading. 3. Watch as focus is stripped from current tab and taken elsewhere. Actual Results: Focus was taken to another tab, and caused any typing I did to appear there, instead of the field I was typing into. Expected Results: Done the .focus() when the tab became active, or somehow done the focus for the tab, then returned overall focus to the currently viewed tab. I'm using Firefox, so I'm not sure if it's specific to FF, but I thought I'd post it in Browser as it seems to be a browser related problem. This is a standard download of v0.9
Comment 1•20 years ago
|
||
*** This bug has been marked as a duplicate of 245502 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Updated•5 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•