Bug 1028497 - Part 1: Add pref for CSS Font Loading API.
authorCameron McCormack <cam@mcc.id.au>
Thu, 02 Oct 2014 12:32:05 +1000
changeset 231528 37b5d218d686b9728499e87752a2805da989d27b
parent 231527 0e9883d2467b49b75ac3cb9edcc2e52dd2081762
child 231529 52e4991a82169afddad8f0da702a1421a6bd1019
push id4187
push userbhearsum@mozilla.com
push dateFri, 28 Nov 2014 15:29:12 +0000
treeherdermozilla-beta@f23cc6a30c11 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1028497
milestone35.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 1028497 - Part 1: Add pref for CSS Font Loading API. We start with this preffed off even in Nightly builds since we'll need to support iterators on FontFaceSet objects (and remove the indexed getter) before exposing it to authors.
modules/libpref/init/all.js
testing/profiles/prefs_general.js
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -2113,16 +2113,19 @@ pref("layout.css.scroll-behavior.spring-
 // When below 1.0, the system is under-damped; it may overshoot the target and
 // oscillate.
 // When greater than 1.0, the system is over-damped; it will reach the target at
 // reduced speed without overshooting.
 // When equal to 1.0, the system is critically-damped; it will reach the target
 // at the greatest speed without overshooting.
 pref("layout.css.scroll-behavior.damping-ratio", "1.0");
 
+// Is support for document.fonts enabled?
+pref("layout.css.font-loading-api.enabled", false);
+
 // pref for which side vertical scrollbars should be on
 // 0 = end-side in UI direction
 // 1 = end-side in document/content direction
 // 2 = right
 // 3 = left
 pref("layout.scrollbar.side", 0);
 
 // pref to stop overlay scrollbars from fading out, for testing purposes
--- a/testing/profiles/prefs_general.js
+++ b/testing/profiles/prefs_general.js
@@ -145,16 +145,19 @@ user_pref("layout.css.report_errors", tr
 user_pref("layout.css.grid.enabled", true);
 
 // Enable CSS object-fit & object-position for testing
 user_pref("layout.css.object-fit-and-position.enabled", true);
 
 // Enable CSS Ruby for testing
 user_pref("layout.css.ruby.enabled", true);
 
+// Enable CSS Font Loading API for testing
+user_pref("layout.css.font-loading-api.enabled", true);
+
 // Disable spammy layout warnings because they pollute test logs
 user_pref("layout.spammy_warnings.enabled", false);
 
 // Enable Media Source Extensions for testing
 user_pref("media.mediasource.enabled", true);
 
 // Enable mozContacts
 user_pref("dom.mozContacts.enabled", true);