Bug 1358197 - Fix the animation pref migration r?jaws draft
authorJim Porter <jporter@mozilla.com>
Thu, 20 Apr 2017 12:16:20 -0500
changeset 565993 96e545f3779312fa2d7bcd9cb88981e66254ff1f
parent 565991 b728b818169c35e1dc65b71d424e9542abb52b0a
child 625166 e328d27aa5f009672a1b34bca5a2d3375fdd0da7
push id55053
push userbmo:squibblyflabbetydoo@gmail.com
push dateThu, 20 Apr 2017 17:19:57 +0000
reviewersjaws
bugs1358197, 1352069
milestone55.0a1
Bug 1358197 - Fix the animation pref migration r?jaws This is just a small fix to the previous commit for bug 1352069 because one line in the pref migration code was mispasted. MozReview-Commit-ID: LnpUHKGAoKa
browser/components/nsBrowserGlue.js
--- a/browser/components/nsBrowserGlue.js
+++ b/browser/components/nsBrowserGlue.js
@@ -1854,17 +1854,17 @@ BrowserGlue.prototype = {
       let animate = Services.prefs.getBoolPref("browser.tabs.animate", true) &&
                     Services.prefs.getBoolPref("browser.fullscreen.animate", true) &&
                     !Services.prefs.getBoolPref("alerts.disableSlidingEffect", false);
 
       Services.prefs.setBoolPref("toolkit.cosmeticAnimations.enabled", animate);
 
       Services.prefs.clearUserPref("browser.tabs.animate");
       Services.prefs.clearUserPref("browser.fullscreen.animate");
-      Services.prefs.clearUserPref("browser.tabs.animate");
+      Services.prefs.clearUserPref("alerts.disableSlidingEffect");
     }
 
     // Update the migration version.
     Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
   },
 
   // ------------------------------
   // public nsIBrowserGlue members