Firefox has had this feature since in 2004 [1]. It's called Smart Keywords [2]. It can be enhanced with an extension called SmartSearch [3].
[1] http://www.wired.com/science/discoveries/news/2004/11/65668?...
[2] http://support.mozilla.com/en-US/kb/Smart+keywords
[3] https://addons.mozilla.org/en-US/firefox/addon/188/