Bug 1367636 - Make reftest "stylo" condition match only non-styloVsGecko draft
authorShing Lyu <slyu@mozilla.com>
Fri, 26 May 2017 10:27:27 +0800
changeset 584958 fab942401dcfa9d5855d5e20b7cae41dc2bd331b
parent 584286 0319163e451ba900de0d568c9144aa4473fe00d2
child 584959 7ea7a84434822ff5274545cdbe9f551f902ced40
push id60955
push userbmo:shing.lyu@gmail.com
push dateFri, 26 May 2017 09:18:24 +0000
bugs1367636
milestone55.0a1
Bug 1367636 - Make reftest "stylo" condition match only non-styloVsGecko mode 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;