Skip to content

Commit c945df7

Browse files
committed
Add option to turn on accessibility for chrome family
1 parent f221c3a commit c945df7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tools/wpt/run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,8 @@ def setup_kwargs(self, kwargs):
519519
# We are on Taskcluster, where our Docker container does not have
520520
# enough capabilities to run Chrome with sandboxing. (gh-20133)
521521
kwargs["binary_args"].append("--no-sandbox")
522-
522+
if kwargs["force_renderer_accessibility"]:
523+
kwargs["binary_args"].append("--force-renderer-accessibility")
523524

524525
class ContentShell(BrowserSetup):
525526
name = "content_shell"

tools/wptrunner/wptrunner/wptcommandline.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ def create_parser(product_choices=None):
377377
chrome_group.add_argument("--no-enable-experimental", action="store_false", dest="enable_experimental",
378378
help="Do not enable --enable-experimental-web-platform-features flag "
379379
"on experimental channels")
380+
chrome_group.add_argument( "--force-renderer-accessibility", action="store_true",
381+
dest="force_renderer_accessibility",help="Turn on accessibility.")
380382
chrome_group.add_argument(
381383
"--enable-sanitizer",
382384
action="store_true",

0 commit comments

Comments
 (0)