cancel
Showing results for 
Search instead for 
Did you mean: 

How do I stop the cursor focus from changing to the address bar when google.com loads in a new tab?

SOLVED
Highlighted
New User

How do I stop the cursor focus from changing to the address bar when google.com loads in a new tab?

The question pretty much says it. Since I went from 3.6 to 4 RC1, cursor focus goes to the address bar instead of staying/going in the search field when google.com loads in new tabs.

Tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
New User

Re: How do I stop the cursor focus from changing to the address bar when google.com loads in a new tab?

If your using the 'New Tab Homepage' extension then this happens when you upgrade to Firefox 4. Uninstall the official 0.4.3 extension and install the one below for a quick hack. All it does is remove the following section from the code which focuses the cursor on the urlbar.

     if (gURLBar)
       setTimeout(function() { 
         // if page is about:blank select() works just like focus, two birds one stone
         gURLBar.select();
       }, 0);

http://www.mediafire.com/?v1113g9noytswdv

(download and drag into firefox to install)

really this should be a preference as part of the extension to allow the user to choose the focus.

25 REPLIES
New User

Re: How do I stop the cursor focus from changing to the address bar when google.com loads in a new tab?

If your using the 'New Tab Homepage' extension then this happens when you upgrade to Firefox 4. Uninstall the official 0.4.3 extension and install the one below for a quick hack. All it does is remove the following section from the code which focuses the cursor on the urlbar.

     if (gURLBar)
       setTimeout(function() { 
         // if page is about:blank select() works just like focus, two birds one stone
         gURLBar.select();
       }, 0);

http://www.mediafire.com/?v1113g9noytswdv

(download and drag into firefox to install)

really this should be a preference as part of the extension to allow the user to choose the focus.

New User

Re: How do I stop the cursor focus from changing to the address bar when google.com loads in a new tab?

Worked like a charm. I assumed it was as simple as changing a section of code or a variable, but I figured it would have been something with the browser and not the addon.

Thanks!

New User

Re: How do I stop the cursor focus from changing to the address bar when google.com loads in a new tab?

Sorry for this absolute novice question but how exactly do i install this download?

I uninstalled 0.4.3 as stated and then tried to drag the files into an open firefox window but to no avail!

Thanks in advance

New User

Re: How do I stop the cursor focus from changing to the address bar when google.com loads in a new tab?

@ytrewq123 : Are you sure you dragged the downloaded file 'newTabHome_0.4.3_hacked.xpi' into any open firefox window? You should get an install addon window. Alternatively open the file by using the File>Open file from the menu (if you can't see your file menu the press alt to bring it up).

New User

Re: How do I stop the cursor focus from changing to the address bar when google.com loads in a new tab?

Thanks for this fix!! Hopefully it can be added to the official plugin, so I don't have to look for updates etc.

New User

Re: How do I stop the cursor focus from changing to the address bar when google.com loads in a new tab?

Brilliantly simply, thanks!!

New User

Re: How do I stop the cursor focus from changing to the address bar when google.com loads in a new tab?

Works a charm, thanks...

New User

Re: How do I stop the cursor focus from changing to the address bar when google.com loads in a new tab?

AHHHHHH Smiley Happy

New User

Re: How do I stop the cursor focus from changing to the address bar when google.com loads in a new tab?

I had the same problem when I updated to firefox 4. This is how i fixed it:

The problem seems to be caused by the 'New Tab Homepage' add on. So:


  1. Disable or remove the 'New Tab Homepage' add on and restart firefox.
  2. Download and install the firefox add on called 'NewTabURL' and restart firefox.
  3. Click on the Options button for NewTabURL and uncheck 'Select location bar after loading new tab'
  4. Under the 'Default URL for new tabs' heading, choose 'Home Page'
  5. Click on the Save button.

Hopefully, problem solved!