Bug 862998 - Make UITour compatible with Australis, r=dolske
authorBlair McBride <bmcbride@mozilla.com>
Tue, 17 Sep 2013 03:55:00 +0200
changeset 151977 213ebacc64e2587b23840126d99a086edd4be549
parent 151976 0b9e36f5ad5de66315e91dd5b3a3c779086c13cb
child 151978 c70f445e0773a596b71429c7a6de9d43af8bd436
push id529
push usergijskruitbosch@gmail.com
push dateFri, 18 Oct 2013 10:58:01 +0000
treeherderux@213ebacc64e2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdolske
bugs862998
milestone27.0a1
Bug 862998 - Make UITour compatible with Australis, r=dolske
browser/modules/UITour.jsm
--- a/browser/modules/UITour.jsm
+++ b/browser/modules/UITour.jsm
@@ -21,18 +21,18 @@ const PREF_PERM_BRANCH    = "browser.uit
 
 this.UITour = {
   originTabs: new WeakMap(),
   pinnedTabs: new WeakMap(),
   urlbarCapture: new WeakMap(),
 
   highlightEffects: ["wobble", "zoom", "color"],
   targets: new Map([
-    ["backforward", "#unified-back-forward-button"],
-    ["appmenu", "#appmenu-button"],
+    ["backforward", "#back-button"],
+    ["appmenu", "#PanelUI-menu-button"],
     ["home", "#home-button"],
     ["urlbar", "#urlbar"],
     ["bookmarks", "#bookmarks-menu-button"],
     ["search", "#searchbar"],
     ["searchprovider", function UITour_target_searchprovider(aDocument) {
       let searchbar = aDocument.getElementById("searchbar");
       return aDocument.getAnonymousElementByAttribute(searchbar,
                                                      "anonid",
@@ -379,17 +379,17 @@ this.UITour = {
   showMenu: function(aWindow, aMenuName) {
     function openMenuButton(aId) {
       let menuBtn = aWindow.document.getElementById(aId);
       if (menuBtn && menuBtn.boxObject)
         menuBtn.boxObject.QueryInterface(Ci.nsIMenuBoxObject).openMenu(true);
     }
 
     if (aMenuName == "appmenu")
-      openMenuButton("appmenu-button");
+      aWindow.PanelUI.show();
     else if (aMenuName == "bookmarks")
       openMenuButton("bookmarks-menu-button");
   },
 
   startUrlbarCapture: function(aWindow, aExpectedText, aUrl) {
     let urlbar = aWindow.document.getElementById("urlbar");
     this.urlbarCapture.set(aWindow, {
       expected: aExpectedText.toLocaleLowerCase(),