Closed Bug 623066 Opened 14 years ago Closed 14 years ago

Any page with focus() JavaScript steals focus from address bar

Categories

(Firefox :: Address Bar, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 125282

People

(Reporter: big_novak, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13

When a page loads with JavaScript focus() on a control, FireFox allows focus to be taken away from the address bar. NO OTHER BROWSER behaves in this stupid manner. If the address bar has focus, the user is clearly trying to type in a URL to navigate to a new page. JavaScript firing focus() on a control should NEVER take focus away from the address bar, which should be an element independent of the actual web page being visited.

Reproducible: Always

Steps to Reproduce:
1.load www.google.com
2.click in the address bar
3.begin typing new url
Actual Results:  
focus is taken away from address bar, goes to Google search textbox

Expected Results:  
focus should remain in address bar, allow for complete typing of url

What a dumb bit of code. I'm dumping Firefox for Chrome and Safari. They are faster and don't do dumb things like this. So frustrating.
already fixed (but not on Gecko 1.9.2)
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.