1) First, get rid of the search box. Go to View, then Toolbars, then Customize. That will pop up a box with all of the possible wigits you can select. Click on the search box in the upper right portion of your Firefox window and drag it into that box.
2) Now with the search box gone, the next step is to make the location bar act as one. To do this, type “about: config” into the location bar. Then select “keyword.url” and enter “http://www.google.com/search?ie=UTF-8&oe=utf-8&q=”. Now whatever you type into the location bar that’s not a URL will do a Google search. You have to exit and re-start Firefox for this to take effect.