Bug 1035335 - Don't convert number query for searches. r=mfinkle

This commit is contained in:
Brian Nicholson 2014-07-11 13:12:44 -07:00
parent 387fa5673a
commit 96f0296c8e

View File

@ -1523,8 +1523,9 @@ var BrowserApp = {
let url = data.url;
let flags;
if (/^[0-9]+$/.test(url)) {
// If the query is a number, force a search (see bug 993705; workaround for bug 693808).
if (!data.engine && /^[0-9]+$/.test(url)) {
// If the query is a number and we're not using a search engine,
// force a search (see bug 993705; workaround for bug 693808).
url = URIFixup.keywordToURI(url).spec;
} else {
flags |= Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP |