Closed Bug 449650 Opened 16 years ago Closed 16 years ago

Web pages should be prevented from grabbing cursor/caret if user is typing in location bar

Categories

(Firefox :: Address Bar, enhancement)

3.0 Branch
x86
All
enhancement
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 125282

People

(Reporter: paul.lebeau, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

Many pages like the default Firefox/Google home page grab the caret with an onload event and place it in the first form field.  If you are typing an address in the location bar at the time that can be very annoying.

I suggest that pages should not be allowed to grab the caret in this situation.
ie. the javascript focus() call should do nothing.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Can you please give more information on why this would be wanted? That Javascript function is valid, so why should we not allow it?
OS: Windows XP → All
Version: unspecified → 3.0 Branch
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Verified dup
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.