Bug 1181605 - search suggestions in the awesome bar should use the "keyword" purpose. r=adw, a=sylvestre
authorMarco Bonardo <mbonardo@mozilla.com>
Mon, 07 Sep 2015 23:07:23 +0200
changeset 289261 bc0e4bf354d731a8ed17127d8eb514da883667c9
parent 289260 46f81b68c55ff99831f9c994522ae32fbb5e39a0
child 289262 721ab475da3b881da257b85b8da11e10df5574d4
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersadw, sylvestre
bugs1181605
milestone42.0a2
Bug 1181605 - search suggestions in the awesome bar should use the "keyword" purpose. r=adw, a=sylvestre
browser/base/content/urlbarBindings.xml
--- a/browser/base/content/urlbarBindings.xml
+++ b/browser/base/content/urlbarBindings.xml
@@ -336,17 +336,17 @@ file, You can obtain one at http://mozil
                 return;
               }
             } else if (action.type == "keyword") {
               url = action.params.url;
             } else if (action.type == "searchengine") {
               let engine = Services.search.getEngineByName(action.params.engineName);
               let query = action.params.searchSuggestion ||
                           action.params.searchQuery;
-              let submission = engine.getSubmission(query);
+              let submission = engine.getSubmission(query, null, "keyword");
 
               url = submission.uri.spec;
               postData = submission.postData;
             } else if (action.type == "visiturl") {
               url = action.params.url;
             }
             continueOperation.call(this);
           }
@@ -1786,17 +1786,17 @@ file, You can obtain one at http://mozil
                 case "visiturl": {
                   url = action.params.url;
                   break;
                 }
                 case "searchengine": {
                   let engine = Services.search.getEngineByName(action.params.engineName);
                   let query = action.params.searchSuggestion ||
                               action.params.searchQuery;
-                  let submission = engine.getSubmission(query);
+                  let submission = engine.getSubmission(query, null, "keyword");
                   url = submission.uri.spec;
                   options.postData = submission.postData;
                   break;
                 }
                 default: {
                   return;
                 }
               }