Skip to content

Commit

Permalink
Bug 1693021 - [puppeteer] Add --enable-webrender argument to mach com…
Browse files Browse the repository at this point in the history
…mand. r=remote-protocol-reviewers,jdescottes

Differential Revision: https://phabricator.services.mozilla.com/D105361
  • Loading branch information
whimboo committed Feb 17, 2021
1 parent 1eabd81 commit c1aa949
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions remote/mach_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,8 @@ def run_test(self, logger, *tests, **params):
`extra_prefs`:
Dictionary of extra preferences to write to the profile,
before invoking npm. Overrides default preferences.
`enable_webrender`:
Boolean to indicate whether to enable WebRender compositor in Gecko.
`write_results`:
Path to write the results json file
`subset`
Expand Down Expand Up @@ -442,6 +444,9 @@ def run_test(self, logger, *tests, **params):
if product == "firefox":
env["BINARY"] = binary
env["PUPPETEER_PRODUCT"] = "firefox"

env["MOZ_WEBRENDER"] = "%d" % params.get("enable_webrender", False)

command = ["run", "unit", "--"] + mocha_options

env["HEADLESS"] = str(params.get("headless", False))
Expand Down Expand Up @@ -517,6 +522,11 @@ def create_parser_puppeteer():
action="store_true",
help="Enable Fission (site isolation) in Gecko.",
)
p.add_argument(
"--enable-webrender",
action="store_true",
help="Enable the WebRender compositor in Gecko.",
)
p.add_argument(
"-z", "--headless", action="store_true", help="Run browser in headless mode."
)
Expand Down Expand Up @@ -578,6 +588,7 @@ def puppeteer_test(
binary=None,
ci=False,
enable_fission=False,
enable_webrender=False,
headless=False,
extra_prefs=None,
extra_options=None,
Expand Down Expand Up @@ -642,6 +653,7 @@ def puppeteer_test(
params = {
"binary": binary,
"headless": headless,
"enable_webrender": enable_webrender,
"extra_prefs": prefs,
"product": product,
"extra_launcher_options": options,
Expand Down

0 comments on commit c1aa949

Please sign in to comment.