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 243688 756c22d18cdf
parent 243687 b005871a2349
child 243689 5690b3943d75
push id4436
push usermozilla@noorenberghe.ca
push date2015-02-05 02:33 +0000
treeherdermozilla-beta@5690b3943d75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersUnfocused, sledru
bugs1125764, 1123010
milestone36.0
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/modules/UITour.jsm
--- a/browser/modules/UITour.jsm
+++ b/browser/modules/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";