mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Bug 1035335 - Don't convert number query for searches. r=mfinkle
This commit is contained in:
parent
387fa5673a
commit
96f0296c8e
@ -1523,8 +1523,9 @@ var BrowserApp = {
|
|||||||
let url = data.url;
|
let url = data.url;
|
||||||
let flags;
|
let flags;
|
||||||
|
|
||||||
if (/^[0-9]+$/.test(url)) {
|
if (!data.engine && /^[0-9]+$/.test(url)) {
|
||||||
// If the query is a number, force a search (see bug 993705; workaround for bug 693808).
|
// 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;
|
url = URIFixup.keywordToURI(url).spec;
|
||||||
} else {
|
} else {
|
||||||
flags |= Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP |
|
flags |= Ci.nsIWebNavigation.LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP |
|
||||||
|
Loading…
Reference in New Issue
Block a user