Bug 1068290 - UI Tour: Add ability to highlight New Private Window icon in chrome. r=mattn
authorJustin Dolske <dolske@mozilla.com>
Fri, 17 Oct 2014 15:00:44 -0700
changeset 218128 ea602704377d
parent 218127 8a69f66b4e31
child 218129 62fee88552f8
push id553
push userryanvm@gmail.com
push date2014-10-29 12:21 +0000
treeherdermozilla-release@766b4b4fa7c7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmattn
bugs1068290
milestone33.0
Bug 1068290 - UI Tour: Add ability to highlight New Private Window icon in chrome. r=mattn
browser/modules/UITour.jsm
browser/modules/test/browser_UITour_availableTargets.js
--- a/browser/modules/UITour.jsm
+++ b/browser/modules/UITour.jsm
@@ -93,16 +93,17 @@ this.UITour = {
         return aDocument.getAnonymousElementByAttribute(customizeButton,
                                                         "class",
                                                         "toolbarbutton-icon");
       },
       widgetName: "PanelUI-customize",
     }],
     ["help",        {query: "#PanelUI-help"}],
     ["home",        {query: "#home-button"}],
+    ["privateWindow",  {query: "#privatebrowsing-button"}],
     ["quit",        {query: "#PanelUI-quit"}],
     ["search",      {
       query: "#searchbar",
       widgetName: "search-container",
     }],
     ["searchProvider", {
       query: (aDocument) => {
         let searchbar = aDocument.getElementById("searchbar");
--- a/browser/modules/test/browser_UITour_availableTargets.js
+++ b/browser/modules/test/browser_UITour_availableTargets.js
@@ -22,16 +22,17 @@ let tests = [
         "addons",
         "appMenu",
         "backForward",
         "bookmarks",
         "customize",
         "help",
         "home",
         "pinnedTab",
+        "privateWindow",
         "quit",
         "search",
         "searchProvider",
         "urlbar",
       ]);
       ok(UITour.availableTargetsCache.has(window),
          "Targets should now be cached");
       done();
@@ -47,16 +48,17 @@ let tests = [
         "accountStatus",
         "addons",
         "appMenu",
         "backForward",
         "customize",
         "help",
         "home",
         "pinnedTab",
+        "privateWindow",
         "quit",
         "search",
         "searchProvider",
         "urlbar",
       ]);
       ok(UITour.availableTargetsCache.has(window),
          "Targets should now be cached again");
       CustomizableUI.reset();
@@ -77,16 +79,17 @@ let tests = [
         "addons",
         "appMenu",
         "backForward",
         "bookmarks",
         "customize",
         "help",
         "home",
         "pinnedTab",
+        "privateWindow",
         "quit",
         "urlbar",
       ]);
       CustomizableUI.reset();
       done();
     });
   },
 ];