Bug 1259108 - Increase timeout of notifications from 12s to 20s to match parity with Chromium. r=MattN
authorJared Wein <jwein@mozilla.com>
Wed, 23 Mar 2016 12:54:57 -0400
changeset 290091 95bfe6301ba7302bbbb2b82a44d89919565489d2
parent 290090 d6ccfd400a7f77151c888a975412b1532dc3df96
child 290092 46866237f27be04eff1a08bd9b0dfbbc6015fd83
push id30114
push usercbook@mozilla.com
push dateThu, 24 Mar 2016 15:15:54 +0000
treeherdermozilla-central@24c5fbde4488 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMattN
bugs1259108
milestone48.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 1259108 - Increase timeout of notifications from 12s to 20s to match parity with Chromium. r=MattN MozReview-Commit-ID: 31RjSWuszuC
toolkit/components/alerts/resources/content/alert.css
toolkit/components/alerts/resources/content/alert.js
--- a/toolkit/components/alerts/resources/content/alert.css
+++ b/toolkit/components/alerts/resources/content/alert.css
@@ -1,14 +1,14 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #alertBox[animate] {
-  animation-duration: 12s;
+  animation-duration: 20s;
   animation-fill-mode: both;
   animation-name: alert-animation;
 }
 
 #alertBox[animate]:not([clicked]):not([closing]):hover {
   animation-play-state: paused;
 }
 
--- a/toolkit/components/alerts/resources/content/alert.js
+++ b/toolkit/components/alerts/resources/content/alert.js
@@ -141,17 +141,17 @@ function prefillAlertInfo() {
         document.getElementById("alertImage").setAttribute("src", window.arguments[0]);
       }
     case 0:
       break;
   }
 }
 
 function onAlertLoad() {
-  const ALERT_DURATION_IMMEDIATE = 12000;
+  const ALERT_DURATION_IMMEDIATE = 20000;
   let alertTextBox = document.getElementById("alertTextBox");
   let alertImageBox = document.getElementById("alertImageBox");
   alertImageBox.style.minHeight = alertTextBox.scrollHeight + "px";
 
   sizeToContent();
 
   if (gReplacedWindow && !gReplacedWindow.closed) {
     moveWindowToReplace(gReplacedWindow);