summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py')
-rw-r--r--testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py b/testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py
index d65369b380..d9d85de6a4 100644
--- a/testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py
+++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py
@@ -396,11 +396,16 @@ def run_tests(config, product, test_paths, **kwargs):
product.check_args(**kwargs)
+ kwargs["allow_list_paths"] = []
if kwargs["install_fonts"]:
+ # Add test font to allow list for sandbox to ensure that the content
+ # processes will have read access.
+ ahem_path = os.path.join(test_paths["/"].tests_path, "fonts/Ahem.ttf")
+ kwargs["allow_list_paths"].append(ahem_path)
env_extras.append(FontInstaller(
logger,
font_dir=kwargs["font_dir"],
- ahem=os.path.join(test_paths["/"].tests_path, "fonts/Ahem.ttf")
+ ahem=ahem_path
))
recording.set(["startup", "load_tests"])