If you type something that is not a valid/existing domain, Firefox will try to append .com and/or prepend www. in an attempt to get a valid domain. If that fails, it will do a search.
You can configure this via browser.fixup.alternate.* in about:config.
You can configure this via browser.fixup.alternate.* in about:config.