Bug 1125764 - Allow tour pages to hide UITour annotations and menus when losing visibility. r=Unfocused, a=sledru
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Wed, 28 Jan 2015 17:28:29 -0800
changeset 240486 299375b048b2ed1694d64d252e10af3c2ff5412a
parent 240485 220068cf53f96bc93566243d260d4df3b9a211fb
child 240487 31a211a1b5f9ef86cd87b6d6afe6dfa0b3112dd6
push id7565
push userryanvm@gmail.com
push dateWed, 04 Feb 2015 15:32:33 +0000
treeherdermozilla-aurora@d4082de0ab03 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersUnfocused, sledru
bugs1125764, 1123010
milestone37.0a2
Bug 1125764 - Allow tour pages to hide UITour annotations and menus when losing visibility. r=Unfocused, a=sledru These allow list entries should be removed when bug 1123010 is fixed.
browser/components/uitour/UITour.jsm
--- a/browser/components/uitour/UITour.jsm
+++ b/browser/components/uitour/UITour.jsm
@@ -26,18 +26,22 @@ XPCOMUtils.defineLazyModuleGetter(this, 
 XPCOMUtils.defineLazyModuleGetter(this, "Metrics",
   "resource://gre/modules/Metrics.jsm");
 
 // See LOG_LEVELS in Console.jsm. Common examples: "All", "Info", "Warn", & "Error".
 const PREF_LOG_LEVEL      = "browser.uitour.loglevel";
 const PREF_SEENPAGEIDS    = "browser.uitour.seenPageIDs";
 
 const BACKGROUND_PAGE_ACTIONS_ALLOWED = new Set([
+  "endUrlbarCapture",
   "getConfiguration",
   "getTreatmentTag",
+  "hideHighlight",
+  "hideInfo",
+  "hideMenu",
   "ping",
   "registerPageID",
   "setConfiguration",
   "setTreatmentTag",
 ]);
 const MAX_BUTTONS         = 4;
 
 const BUCKET_NAME         = "UITour";