Bug 879941 - Fix typo in LightweightThemeManager.jsm. r=Unfocused
authorJared Wein <jwein@mozilla.com>
Thu, 06 Jun 2013 19:10:46 -0400
changeset 145804 88a16ae1ecaa35aa50bee145f6f68d6c1c1ecf3f
parent 145803 20c1ebbc31cfdb1e2554338b07d50beacaf6872a
child 145805 adc90bff145fd852a2633a941193e77d11f0e960
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersUnfocused
bugs879941
milestone24.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 879941 - Fix typo in LightweightThemeManager.jsm. r=Unfocused
toolkit/mozapps/extensions/LightweightThemeManager.jsm
--- a/toolkit/mozapps/extensions/LightweightThemeManager.jsm
+++ b/toolkit/mozapps/extensions/LightweightThemeManager.jsm
@@ -62,17 +62,17 @@ this.__defineSetter__("_maxUsedThemes", 
   delete this._maxUsedThemes;
   return this._maxUsedThemes = aVal;
 });
 
 // Holds the ID of the theme being enabled or disabled while sending out the
 // events so cached AddonWrapper instances can return correct values for
 // permissions and pendingOperations
 var _themeIDBeingEnabled = null;
-var _themeIDBeingDisbled = null;
+var _themeIDBeingDisabled = null;
 
 this.LightweightThemeManager = {
   get usedThemes () {
     try {
       return JSON.parse(_prefs.getComplexValue("usedThemes",
                                                Ci.nsISupportsString).data);
     } catch (e) {
       return [];
@@ -310,28 +310,28 @@ this.LightweightThemeManager = {
       }
     }
     catch (e) {
     }
 
     if (current) {
       if (current.id == id)
         return;
-      _themeIDBeingDisbled = current.id;
+      _themeIDBeingDisabled = current.id;
       let wrapper = new AddonWrapper(current);
       if (aPendingRestart) {
         Services.prefs.setCharPref(PREF_LWTHEME_TO_SELECT, "");
         AddonManagerPrivate.callAddonListeners("onDisabling", wrapper, true);
       }
       else {
         AddonManagerPrivate.callAddonListeners("onDisabling", wrapper, false);
         this.themeChanged(null);
         AddonManagerPrivate.callAddonListeners("onDisabled", wrapper);
       }
-      _themeIDBeingDisbled = null;
+      _themeIDBeingDisabled = null;
     }
 
     if (id) {
       let theme = this.getUsedTheme(id);
       _themeIDBeingEnabled = id;
       let wrapper = new AddonWrapper(theme);
       if (aPendingRestart) {
         AddonManagerPrivate.callAddonListeners("onEnabling", wrapper, true);
@@ -469,17 +469,17 @@ function AddonWrapper(aTheme) {
     else
       permissions |= AddonManager.PERM_CAN_DISABLE;
     return permissions;
   });
 
   this.__defineGetter__("userDisabled", function AddonWrapper_userDisabledGetter() {
     if (_themeIDBeingEnabled == aTheme.id)
       return false;
-    if (_themeIDBeingDisbled == aTheme.id)
+    if (_themeIDBeingDisabled == aTheme.id)
       return true;
 
     try {
       let toSelect = Services.prefs.getCharPref(PREF_LWTHEME_TO_SELECT);
       return aTheme.id != toSelect;
     }
     catch (e) {
       let current = LightweightThemeManager.currentTheme;