From 5d691811bee7bb8cd664bce1a128e6cc22a456c9 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Wed, 14 Dec 2016 14:58:27 +0800 Subject: [PATCH] Bug 1323384 - Add a "stylo" variable to the reftest condition sandbox. r=xidorn MozReview-Commit-ID: 27oTyI3QWYM --HG-- extra : rebase_source : fc79361049642edb6434f15b40379a3ca9521e43 --- layout/tools/reftest/reftest.jsm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layout/tools/reftest/reftest.jsm b/layout/tools/reftest/reftest.jsm index a15dac93fc04..ad78873d7360 100644 --- a/layout/tools/reftest/reftest.jsm +++ b/layout/tools/reftest/reftest.jsm @@ -714,6 +714,12 @@ function BuildConditionSandbox(aURL) { sandbox.webrtc = false; #endif +#ifdef MOZ_STYLO + sandbox.stylo = true; +#else + sandbox.stylo = false; +#endif + var hh = CC[NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX + "http"]. getService(CI.nsIHttpProtocolHandler); var httpProps = ["userAgent", "appName", "appVersion", "vendor",