Bug 1392640 - Only use preference based whitelisting for Linux. r?haik draft
authorGian-Carlo Pascutto <gcp@mozilla.com>
Wed, 30 Aug 2017 13:40:10 +0200
changeset 657223 13e80d2f45ded51cb43aa2e57510273dd383c804
parent 657222 fe1ff5e55f1ff8ca8f868047b714ab69bf35d690
child 729389 49a18ab2e7a67983600794c4df99796f4d87e79b
push id77481
push usergpascutto@mozilla.com
push dateFri, 01 Sep 2017 07:48:04 +0000
reviewershaik
bugs1392640
milestone57.0a1
Bug 1392640 - Only use preference based whitelisting for Linux. r?haik MozReview-Commit-ID: IWNnRcLMreI
layout/tools/reftest/runreftest.py
--- a/layout/tools/reftest/runreftest.py
+++ b/layout/tools/reftest/runreftest.py
@@ -305,21 +305,22 @@ class RefTest(object):
             prefs['layers.acceleration.disabled'] = True
 
         sandbox_whitelist_paths = [SCRIPT_DIRECTORY]
         try:
             if options.workPath:
                 sandbox_whitelist_paths.append(options.workPath)
         except AttributeError:
             pass
-        try:
-            if options.objPath:
-                sandbox_whitelist_paths.append(options.objPath)
-        except AttributeError:
-            pass
+        if platform.system() == "Linux":
+            try:
+                if options.objPath:
+                    sandbox_whitelist_paths.append(options.objPath)
+            except AttributeError:
+                pass
         if (platform.system() == "Linux" or
             platform.system() in ("Windows", "Microsoft")):
             # Trailing slashes are needed to indicate directories on Linux and Windows
             sandbox_whitelist_paths = map(lambda p: os.path.join(p, ""),
                                           sandbox_whitelist_paths)
 
         # Bug 1300355: Disable canvas cache for win7 as it uses
         # too much memory and causes OOMs.