Bug 1407292 - don't whitelist the script directory, it is duplicative of the srcdir; r=ahal
authorAlex Gaynor <agaynor@mozilla.com>
Tue, 10 Oct 2017 15:06:33 -0400
changeset 679119 ec97e4979a6264c82f65e9f74605f4c61048ca5c
parent 679118 4cce79b99e1397ecf3f66227b74d28d71e3b0b46
child 679120 007500fffc0353b32efd1fd6cad8e21333d0923a
push id84141
push userbmo:schien@mozilla.com
push dateThu, 12 Oct 2017 11:13:04 +0000
reviewersahal
bugs1407292
milestone58.0a1
Bug 1407292 - don't whitelist the script directory, it is duplicative of the srcdir; r=ahal MozReview-Commit-ID: 2HpJZkHCyhk
layout/tools/reftest/runreftest.py
--- a/layout/tools/reftest/runreftest.py
+++ b/layout/tools/reftest/runreftest.py
@@ -303,17 +303,17 @@ class RefTest(object):
             prefs['browser.tabs.remote.autostart'] = True
             prefs['extensions.e10sBlocksEnabling'] = False
 
         # Bug 1262954: For winXP + e10s disable acceleration
         if platform.system() in ("Windows", "Microsoft") and \
            '5.1' in platform.version() and options.e10s:
             prefs['layers.acceleration.disabled'] = True
 
-        sandbox_whitelist_paths = [SCRIPT_DIRECTORY] + options.sandboxReadWhitelist
+        sandbox_whitelist_paths = options.sandboxReadWhitelist
         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.