Skip to content

Commit

Permalink
Add option to turn on accessibility for chrome family
Browse files Browse the repository at this point in the history
  • Loading branch information
spectranaut committed May 6, 2024
1 parent 06b8480 commit 6807a78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/wpt/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@ def setup_kwargs(self, kwargs):
# We are on Taskcluster, where our Docker container does not have
# enough capabilities to run Chrome with sandboxing. (gh-20133)
kwargs["binary_args"].append("--no-sandbox")

if kwargs["force_renderer_accessibility"]:
kwargs["binary_args"].append("--force-renderer-accessibility")

class ContentShell(BrowserSetup):
name = "content_shell"
Expand Down
2 changes: 2 additions & 0 deletions tools/wptrunner/wptrunner/wptcommandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ def create_parser(product_choices=None):
chrome_group.add_argument("--no-enable-experimental", action="store_false", dest="enable_experimental",
help="Do not enable --enable-experimental-web-platform-features flag "
"on experimental channels")
chrome_group.add_argument( "--force-renderer-accessibility", action="store_true",
dest="force_renderer_accessibility",help="Turn on accessibility.")
chrome_group.add_argument(
"--enable-sanitizer",
action="store_true",
Expand Down

0 comments on commit 6807a78

Please sign in to comment.