Bug 1540662 - Fix the UITour starting an address bar search with QuantumBar enabled. r=mak
authorMark Banner <standard8@mozilla.com>
Tue, 02 Apr 2019 10:05:01 +0000
changeset 467571 157c5b2beb40afc89e9c8aeb934f469d702fe71b
parent 467570 b710c5bb508ef1855397e3f35a761de40ec52f63
child 467572 4c40f8f355e3859919dd1c2c7c2abb1cb4c1a79e
push id82053
push usermbanner@mozilla.com
push dateTue, 02 Apr 2019 11:19:14 +0000
treeherderautoland@157c5b2beb40 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs1540662
milestone68.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1540662 - Fix the UITour starting an address bar search with QuantumBar enabled. r=mak Differential Revision: https://phabricator.services.mozilla.com/D25588
browser/components/uitour/UITour.jsm
--- a/browser/components/uitour/UITour.jsm
+++ b/browser/components/uitour/UITour.jsm
@@ -1313,17 +1313,20 @@ var UITour = {
       // for URLBar's dropdown. To limit the search results on browser-related
       // items, we use "Firefox" hard-coded rather than l10n brandShortName
       // entity to avoid unrelated or unpredicted results for, like, Nightly
       // or translated entites.
       const SEARCH_STRING = "Firefox";
       urlbar.value = SEARCH_STRING;
       urlbar.select();
       if (quantumbar) {
-        urlbar.startQuery();
+        urlbar.startQuery({
+          searchString: SEARCH_STRING,
+          allowAutofill: false,
+        });
       } else {
         urlbar.controller.startSearch(SEARCH_STRING);
       }
     }
   },
 
   hideMenu(aWindow, aMenuName) {
     log.debug("hideMenu:", aMenuName);