Closed Bug 239468 Opened 20 years ago Closed 20 years ago

Background tab using javascript .focus() steals focus from foreground tab

Categories

(SeaMonkey :: Tabbed Browser, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 124750

People

(Reporter: bugzilla.mozilla.org, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8

Explained in Summary, Steps to Reproduce, and Actual Results fields.

Reproducible: Always
Steps to Reproduce:
1. Open any page that uses the .focus() event in javascript (For example:
http://www.fastmail.fm ).
2. Open a new tab before the first page has triggered the .focus()
3. Start typing in a new URL
Actual Results:  
Focus goes to textbox in background tab as soon as the .focus() event triggers.
Whatever you are typing in the new window (or address bar) starts getting sent
to the background window.

Expected Results:  
Set the focus once the background page is brought into the foreground.

*** This bug has been marked as a duplicate of 124750 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Product: Core → SeaMonkey
You need to log in before you can comment on or make changes to this bug.