Bug 1358268 - Port bug 1352069 to TB: rename alerts.disableSlidingEffect to (not)toolkit.cosmeticAnimations.enabled. rs=bustage-fix DONTBUILD
authorJorg K <jorgk@jorgk.com>
Thu, 20 Apr 2017 23:01:02 +0200
changeset 21436 ef68c4b126888f921f1525b027bf289beeb04b86
parent 21435 a0d1a7b5c018625c017e1640419f51f8a3bbfb6e
child 21437 56aa2a3119a40095980639dd3d13d765b4a8147d
push id13049
push usermozilla@jorgk.com
push dateThu, 20 Apr 2017 21:01:35 +0000
treeherdercomm-central@ef68c4b12688 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1358268, 1352069
Bug 1358268 - Port bug 1352069 to TB: rename alerts.disableSlidingEffect to (not)toolkit.cosmeticAnimations.enabled. rs=bustage-fix DONTBUILD
mailnews/base/content/newmailalert.js
--- a/mailnews/base/content/newmailalert.js
+++ b/mailnews/base/content/newmailalert.js
@@ -120,17 +120,17 @@ function showAlert()
   }
 
   // resize the alert based on our current content
   resizeAlert(false);
 
   var alertContainer = document.getElementById("alertContainer");
   // Don't fade in if the user opened the alert or the pref is true.
   if (gUserInitiated ||
-      Services.prefs.getBoolPref("alerts.disableSlidingEffect")) {
+      !Services.prefs.getBoolPref("toolkit.cosmeticAnimations.enabled")) {
     alertContainer.setAttribute("noanimation", true);
     setTimeout(closeAlert, gOpenTime);
     return;
   }
 
   alertContainer.addEventListener("animationend", function hideAlert(event) {
     if (event.animationName == "fade-in") {
       alertContainer.removeEventListener("animationend", hideAlert, false);