Bug 1333175 - Add :fullscreen pseudo-class in ua sheets into whitelist in browser_parsable_css.js. r=Gijs a=test-only
authorXidorn Quan <me@upsuper.org>
Tue, 24 Jan 2017 11:06:24 +1100
changeset 375848 6ad72b5a43e15125e1baf4a88183b467c042894e
parent 375847 935a29b0089e91ea3031948c3d35608eead6614a
child 375849 ebaae8442fa17cbae09d2168e36f79dc5ef39b35
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, test-only
bugs1333175
milestone53.0a2
Bug 1333175 - Add :fullscreen pseudo-class in ua sheets into whitelist in browser_parsable_css.js. r=Gijs a=test-only MozReview-Commit-ID: DmI1B4FEUgR
browser/base/content/test/general/browser_parsable_css.js
--- a/browser/base/content/test/general/browser_parsable_css.js
+++ b/browser/base/content/test/general/browser_parsable_css.js
@@ -43,16 +43,24 @@ let whitelist = [
    errorMessage: /Unknown property.*-moz-/i,
    isFromDevTools: false},
   // Reserved to UA sheets unless layout.css.overflow-clip-box.enabled flipped to true.
   {sourceName: /res\/forms\.css$/i,
    errorMessage: /Unknown property.*overflow-clip-box/i,
    isFromDevTools: false},
 ];
 
+if (!Services.prefs.getBoolPref("full-screen-api.unprefix.enabled")) {
+  whitelist.push({
+    sourceName: /res\/(ua|html)\.css$/i,
+    errorMessage: /Unknown pseudo-class .*\bfullscreen\b/i,
+    isFromDevTools: false
+  });
+}
+
 // Platform can be "linux", "macosx" or "win". If omitted, the exception applies to all platforms.
 let allowedImageReferences = [
   // Bug 1302691
   {file: "chrome://devtools/skin/images/dock-bottom-minimize@2x.png",
    from: "chrome://devtools/skin/toolbox.css",
    isFromDevTools: true},
   {file: "chrome://devtools/skin/images/dock-bottom-maximize@2x.png",
    from: "chrome://devtools/skin/toolbox.css",