Chrome has done this since 2010: http://chrome.blogspot.com/2010/10/understanding-omnibox-for...
Firefox's implementation of this feature is at least partially because of its usage in Chrome and other browsers: https://wiki.mozilla.org/Firefox/Features/Locationbar_Domain...