Bug 1367636 - Make reftest "stylo" condition match only non-styloVsGecko mode. r=heycam
authorShing Lyu <slyu@mozilla.com>
Fri, 26 May 2017 10:27:27 +0800
changeset 360975 90a28b364ba89e1e4396c839f29bcd4184623eb6
parent 360974 74193a40b2a436f5c8536764c319603f79d18380
child 360976 6044cf528f8c6668ac7d33a6ee5972bb2b77872b
push id43569
push usercmccormack@mozilla.com
push dateSat, 27 May 2017 10:54:00 +0000
treeherderautoland@8db66ad9798b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1367636
milestone55.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 1367636 - Make reftest "stylo" condition match only non-styloVsGecko mode. r=heycam MozReview-Commit-ID: 7wAFofMkaB6
layout/tools/reftest/reftest.jsm
--- a/layout/tools/reftest/reftest.jsm
+++ b/layout/tools/reftest/reftest.jsm
@@ -710,17 +710,17 @@ function BuildConditionSandbox(aURL) {
 
 #if MOZ_WEBRTC
     sandbox.webrtc = true;
 #else
     sandbox.webrtc = false;
 #endif
 
 #ifdef MOZ_STYLO
-    sandbox.stylo = prefs.getBoolPref("layout.css.servo.enabled", false);
+    sandbox.stylo = prefs.getBoolPref("layout.css.servo.enabled", false) && !gCompareStyloToGecko;
     sandbox.styloVsGecko = gCompareStyloToGecko;
 #else
     sandbox.stylo = false;
     sandbox.styloVsGecko = false;
 #endif
 
 #ifdef RELEASE_OR_BETA
     sandbox.release_or_beta = true;