From 37088aa4c34b71681b20b31c14c1f1a1e5db7856 Mon Sep 17 00:00:00 2001 From: Kenzie Raditya Tirtarahardja Date: Wed, 20 Aug 2025 21:26:59 +0800 Subject: [PATCH] wpt: Set servo window size and open blank page for wdspec (#38793) On `ServoWdSpecBrowser`, we set the window size to `800x600` and open `about:blank`. This will unify the behavior of servo and servodriver. https://github.com/servo/servo/blob/604b6ea26dadc55e6c8c68b9c7d9f9f84193539e/tests/wpt/tests/tools/wptrunner/wptrunner/browsers/servodriver.py#L101-L102 Testing: Unify the behavior of servo and servodriver for wdspec Signed-off-by: PotatoCP --- tests/wpt/meta/MANIFEST.json | 2 +- tests/wpt/tests/tools/wptrunner/wptrunner/browsers/servo.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/wpt/meta/MANIFEST.json b/tests/wpt/meta/MANIFEST.json index 3bf5553a43a..706fbc060d1 100644 --- a/tests/wpt/meta/MANIFEST.json +++ b/tests/wpt/meta/MANIFEST.json @@ -522937,7 +522937,7 @@ ] }, "servo.py": [ - "07441780ccc7682c6b7616271aeb9a40310a433a", + "2928ffb7f1d483cff60dd17ffd92a53c9b1c3148", [] ], "servodriver.py": [ diff --git a/tests/wpt/tests/tools/wptrunner/wptrunner/browsers/servo.py b/tests/wpt/tests/tools/wptrunner/wptrunner/browsers/servo.py index 07441780ccc..2928ffb7f1d 100644 --- a/tests/wpt/tests/tools/wptrunner/wptrunner/browsers/servo.py +++ b/tests/wpt/tests/tools/wptrunner/wptrunner/browsers/servo.py @@ -116,7 +116,10 @@ class ServoWdspecBrowser(WebDriverBrowser): # See https://github.com/servo/servo/issues/30080. # For some reason rustls does not like the certificate generated by the WPT tooling. "--ignore-certificate-errors", - "--headless"] + self.webdriver_args + "--headless", + "--window-size", + "800x600", + "about:blank"] + self.webdriver_args if self.binary_args: command += self.binary_args return command