Bug 1381020 - Anchor UITour tooltip for customize button to whole button instead of icon to avoid a race. r?MattN draft
authorMike Conley <mconley@mozilla.com>
Mon, 17 Jul 2017 09:49:23 -0700
changeset 609866 6e56177c894c1fcb34fc5be8e6d443a59f0c3dc9
parent 609865 e0b0865639cebc1b5afa0268a4b073fcdde0e69c
child 637700 59bbcbe3002de7e92651de3ffdffc168aa69d6d9
push id68716
push userbmo:mconley@mozilla.com
push dateMon, 17 Jul 2017 16:49:49 +0000
reviewersMattN
bugs1381020
milestone56.0a1
Bug 1381020 - Anchor UITour tooltip for customize button to whole button instead of icon to avoid a race. r?MattN MozReview-Commit-ID: 7iqbm1tVWeL
browser/components/uitour/UITour.jsm
--- a/browser/components/uitour/UITour.jsm
+++ b/browser/components/uitour/UITour.jsm
@@ -142,20 +142,17 @@ this.UITour = {
     ["bookmarks",   {query: "#bookmarks-menu-button"}],
     ["controlCenter-trackingUnblock", controlCenterTrackingToggleTarget(true)],
     ["controlCenter-trackingBlock", controlCenterTrackingToggleTarget(false)],
     ["customize",   {
       query: (aDocument) => {
         if (gPhotonStructure) {
           return aDocument.getElementById("appMenu-customize-button");
         }
-        let customizeButton = aDocument.getElementById("PanelUI-customize");
-        return aDocument.getAnonymousElementByAttribute(customizeButton,
-                                                        "class",
-                                                        "toolbarbutton-icon");
+        return aDocument.getElementById("PanelUI-customize");
       },
       get widgetName() {
         return gPhotonStructure ? "appMenu-customize-button" : "PanelUI-customize";
       },
     }],
     ["devtools", {
       query(aDocument) {
         let button = aDocument.getElementById("developer-button");