Bug 1125764 - Allow tour pages to hide UITour annotations and menus when losing visibility. r=Unfocused
authorMatthew Noorenberghe <mozilla@noorenberghe.ca>
Wed, 28 Jan 2015 17:28:29 -0800
changeset 253598 42750f461e9538db90ba895b458ab4e497198007
parent 253597 7513395c7d1b4fb3bd02a8c76ed1bc2fd95311e1
child 253599 b84a2086c4571c9d9825e84f5c5920abd508ec90
push id4610
push userjlund@mozilla.com
push dateMon, 30 Mar 2015 18:32:55 +0000
treeherdermozilla-beta@4df54044d9ef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersUnfocused
bugs1125764, 1123010
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1125764 - Allow tour pages to hide UITour annotations and menus when losing visibility. r=Unfocused 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
@@ -28,18 +28,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";