Bug 1524377 - In QuantumBar, don't affect the search url when checking to see if we need to canonize the result. r=dao

Differential Revision: https://phabricator.services.mozilla.com/D18262

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mark Banner 2019-02-01 10:50:05 +00:00
parent 35e59fd61b
commit 91c1df13da

View File

@ -331,9 +331,10 @@ class UrlbarInput {
return;
}
case UrlbarUtils.RESULT_TYPE.SEARCH: {
url = this._maybeCanonizeURL(event,
let canonizedUrl = this._maybeCanonizeURL(event,
result.payload.suggestion || result.payload.query);
if (url) {
if (canonizedUrl) {
url = canonizedUrl;
break;
}
const actionDetails = {