Bug 1229351 - If the Loop button was removed from the toolbar will re-appear when the Loop system add-on is activated. r=Gijs
authorMark Banner <standard8@mozilla.com>
Wed, 02 Dec 2015 16:08:34 +0000
changeset 309344 a8760b15e2138b6e74e1fe133ec13cc58ff7155b
parent 309343 2d33fa3346b2e4bfd7720a9f1f19e4a59b84e143
child 309345 2ec770d354e53708be3887e8e678ce21866d7a8e
push id5513
push userraliiev@mozilla.com
push dateMon, 25 Jan 2016 13:55:34 +0000
treeherdermozilla-beta@5ee97dd05b5c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs
bugs1229351
milestone45.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 1229351 - If the Loop button was removed from the toolbar will re-appear when the Loop system add-on is activated. r=Gijs
browser/components/customizableui/CustomizableUI.jsm
--- a/browser/components/customizableui/CustomizableUI.jsm
+++ b/browser/components/customizableui/CustomizableUI.jsm
@@ -48,24 +48,26 @@ const kSubviewEvents = [
   "ViewShowing",
   "ViewHiding"
 ];
 
 /**
  * The current version. We can use this to auto-add new default widgets as necessary.
  * (would be const but isn't because of testing purposes)
  */
-var kVersion = 4;
+var kVersion = 5;
 
 /**
  * Buttons removed from built-ins by version they were removed. kVersion must be
  * bumped any time a new id is added to this. Use the button id as key, and
  * version the button is removed in as the value.  e.g. "pocket-button": 5
  */
-var ObsoleteBuiltinButtons = {};
+var ObsoleteBuiltinButtons = {
+  "loop-button": 5
+};
 
 /**
  * gPalette is a map of every widget that CustomizableUI.jsm knows about, keyed
  * on their IDs.
  */
 var gPalette = new Map();
 
 /**