MozillaZine

Typing URL address during loading of web pages - issue

Discussion of general topics about Mozilla Firefox
Kenny Leong
 
Posts: 121
Joined: July 8th, 2004, 10:07 pm

Post Posted March 9th, 2009, 8:10 am

Hi folks. Maybe this has been discussed before. But anyway, I often encounter a problem when typing URL addresses in the URL box DURING the loading of a web page. The issue is - when I'm typing a URL address (in the URL box), the URL box will lose focus when the web page (that is currently being loaded) finishes loading. For example.....I might visit yahoo.com, which may take a few moments to finish loading all the contents.

Now, during the loading of the web page (ie before it finishes loading)......if I try to type another URL address, the web browser would usually lose focus on the URL box WHEN the current web page finishes loading all its contents. Is there a setting in firefox that halts the loading of web pages once we begin to type characters in the URL bar? Thanks a lot!

SK.
Moderator

User avatar
 
Posts: 20819
Joined: October 18th, 2007, 1:28 pm
Location: Third Rock From The Sun

Post Posted March 9th, 2009, 8:32 am

I do not believe there is any setting to control that. My recommendation is to start a new tab when you want to go to another site. That will prevent Firefox from updating the address bar.
John 3:16 and Philippians 4:13

dickvl

User avatar
 
Posts: 52483
Joined: July 18th, 2005, 3:25 am

Post Posted March 9th, 2009, 11:56 am

Those site use a onload directive to set focus to a search field:
See http://kb.mozillazine.org/Security_Poli ... m_focusing

For specific sites:
user_pref("capability.policy.policynames", "nofocus");
user_pref("capability.policy.nofocus.sites", "http://www.google.com http:://www.yahoo.com");
user_pref("capability.policy.nofocus.HTMLInputElement.focus", "noAccess");

For all sites:
user_pref("capability.policy.default.HTMLInputElement.focus", "noAccess");)

Kenny Leong
 
Posts: 121
Joined: July 8th, 2004, 10:07 pm

Post Posted March 10th, 2009, 8:39 am

Thanks very much for your kind information SK and VL ! Very much appreciated.

dickvl

User avatar
 
Posts: 52483
Joined: July 18th, 2005, 3:25 am

Post Posted March 10th, 2009, 9:41 am

You're welcome

Kenny Leong
 
Posts: 121
Joined: July 8th, 2004, 10:07 pm

Post Posted March 14th, 2009, 4:43 pm

That setting has been working excellently. Thanks a lot!
In the "user.js" file in the Profiles directory, I used this line (as recommended in this thread) to stop web pages from taking focus away from URL address bars ...

user_pref("capability.policy.default.HTMLInputElement.focus", "noAccess");)

..... and then, later, if for some reason you want to undo that.... then just replace the above line with :

user_pref("capability.policy.default.HTMLInputElement.focus", "allAccess");)

I'm going to leave it as "noAccess" from now on! Thanks again.

Return to Firefox General


Who is online

Users browsing this forum: No registered users and 3 guests