Bug 1448133 - Add a Nightly-only preference to set the tab throbber to animate at 30fps. r?jaws draft
authorMike Conley <mconley@mozilla.com>
Thu, 22 Mar 2018 16:05:49 -0400
changeset 771245 b718d6226f6bf7ecc9ca565c13235be6acd63505
parent 771093 7771df14ea181add1dc4133f0f5559bf620bf976
push id103633
push usermconley@mozilla.com
push dateThu, 22 Mar 2018 20:21:33 +0000
reviewersjaws
bugs1448133
milestone61.0a1
Bug 1448133 - Add a Nightly-only preference to set the tab throbber to animate at 30fps. r?jaws MozReview-Commit-ID: 77Bo8B8F8jE
browser/themes/shared/tabs.inc.css
--- a/browser/themes/shared/tabs.inc.css
+++ b/browser/themes/shared/tabs.inc.css
@@ -196,16 +196,24 @@
      however, that currently forces main thread painting. When this is fixed
      (after WebRender lands), we can do something like
      `transition: fill 0.333s, opacity 0.333s;` */
 
   fill: currentColor;
   opacity: 0.7;
 }
 
+%ifdef NIGHTLY_BUILD
+@supports -moz-bool-pref("browser.tabs.30FpsThrobber") {
+  :root[sessionrestored] .tab-throbber[busy]::before {
+    animation: tab-throbber-animation 1.05s steps(30) infinite;
+  }
+}
+%endif
+
 :root[sessionrestored] .tab-throbber[busy]:-moz-locale-dir(rtl)::before {
   animation-name: tab-throbber-animation-rtl;
 }
 
 @keyframes tab-throbber-animation {
   0% { transform: translateX(0); }
   100% { transform: translateX(-100%); }
 }