Bug 1515939 - Fix styling of the submenu used to add new search engines. r=dao
authorPaolo Amadini <paolo.mozmail@amadzone.org>
Fri, 21 Dec 2018 14:36:34 +0000
changeset 451659 f711b70e09eeca944f980937988bea94c66dcdb0
parent 451658 bac5e091e27dfdafaa6635ee2990db8f0f5cb7ee
child 451660 c43184f50b7ac431b0c8244af2d712a2a9492971
push id110707
push userpaolo.mozmail@amadzone.org
push dateFri, 21 Dec 2018 15:17:41 +0000
treeherdermozilla-inbound@f711b70e09ee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1515939
milestone66.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 1515939 - Fix styling of the submenu used to add new search engines. r=dao Differential Revision: https://phabricator.services.mozilla.com/D15198
browser/components/search/content/search-one-offs.js
--- a/browser/components/search/content/search-one-offs.js
+++ b/browser/components/search/content/search-one-offs.js
@@ -553,18 +553,18 @@ class SearchOneOffs {
 
     let engines = gBrowser.selectedBrowser.engines;
     let tooManyEngines = engines.length > this._addEngineMenuThreshold;
 
     if (tooManyEngines) {
       // Make the top-level menu button.
       let button = document.createXULElement("toolbarbutton");
       list.appendChild(button);
-      button.classList.add("addengine-item", "badged-button");
-      button.setAttribute("class", "addengine-menu-button");
+      button.classList.add("addengine-menu-button", "addengine-item",
+                           "badged-button");
       button.setAttribute("type", "menu");
       button.setAttribute("label",
         this.bundle.GetStringFromName("cmd_addFoundEngineMenu"));
       button.setAttribute("crop", "end");
       button.setAttribute("pack", "start");
 
       // Set the menu button's image to the image of the first engine.  The
       // offered engines may have differing images, so there's no perfect