Bug 1358197 - Fix the animation pref migration r=jaws
authorJim Porter <jporter@mozilla.com>
Thu, 20 Apr 2017 12:16:20 -0500
changeset 566273 fc434c277bf9866622811a46ea6a55c2c1a44cc2
parent 566272 d8ac8edd5843acb6d968b8468bea7773001d26f8
child 566274 e9c6a251a807999609f2d693d1ae9485d14df4cb
push id55180
push userjjong@mozilla.com
push dateFri, 21 Apr 2017 09:36:13 +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