Bug 1519399 - Fix browser_parsable_css.js for scroll-anchoring as it's behind a pref. r=emilio
authorRyan Hunt <rhunt@eqrion.net>
Mon, 14 Jan 2019 14:31:03 +0000
changeset 513714 3fd5d8f120c72898ee74e2cd8194ef35880cd794
parent 513713 4d932b82695c7ac58901ef0a03f44fed6ce2d1f0
child 513715 60cafc046dec5a4aa1ad4ae4f7625b43a2d9fb7f
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
bugs1519399
milestone66.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 1519399 - Fix browser_parsable_css.js for scroll-anchoring as it's behind a pref. r=emilio Differential Revision: https://phabricator.services.mozilla.com/D16404
browser/base/content/test/static/browser_parsable_css.js
--- a/browser/base/content/test/static/browser_parsable_css.js
+++ b/browser/base/content/test/static/browser_parsable_css.js
@@ -90,16 +90,24 @@ if (!Services.prefs.getBoolPref("full-sc
 if (!Services.prefs.getBoolPref("layout.css.scrollbar-width.enabled")) {
   whitelist.push({
     sourceName: /(?:res|gre-resources)\/forms\.css$/i,
     errorMessage: /Unknown property .*\bscrollbar-width\b/i,
     isFromDevTools: false,
   });
 }
 
+if (!Services.prefs.getBoolPref("layout.css.scroll-anchoring.enabled")) {
+  whitelist.push({
+    sourceName: /webconsole\.css$/i,
+    errorMessage: /Unknown property .*\boverflow-anchor\b/i,
+    isFromDevTools: true,
+  });
+}
+
 let propNameWhitelist = [
   // These custom properties are retrieved directly from CSSOM
   // in videocontrols.xml to get pre-defined style instead of computed
   // dimensions, which is why they are not referenced by CSS.
   {propName: "--clickToPlay-width",
    isFromDevTools: false},
   {propName: "--playButton-width",
    isFromDevTools: false},