Skip to content

Commit 9d4b135

Browse files
committed
Bug 1916522 - [webdriver-bidi] The "session.new" command has to return the "setWindowRect" capability. r=Sasha
Differential Revision: https://phabricator.services.mozilla.com/D275211
1 parent 88a1cd9 commit 9d4b135

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

remote/shared/webdriver/Capabilities.sys.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ export class Capabilities extends Map {
500500
["browserVersion", lazy.AppInfo.version],
501501
["platformName", getWebDriverPlatformName()],
502502
["proxy", new ProxyConfiguration()],
503+
["setWindowRect", !lazy.AppInfo.isAndroid],
503504
["unhandledPromptBehavior", new lazy.UserPromptHandler()],
504505
["userAgent", lazy.userAgent],
505506

@@ -517,9 +518,9 @@ export class Capabilities extends Map {
517518
defaults.push(
518519
["pageLoadStrategy", PageLoadStrategy.Normal],
519520
["timeouts", new Timeouts()],
520-
["setWindowRect", !lazy.AppInfo.isAndroid],
521521
["strictFileInteractability", false],
522522

523+
// Gecko specific capabilities
523524
["moz:accessibilityChecks", false],
524525
["moz:webdriverClick", true],
525526
["moz:windowless", false]

remote/shared/webdriver/test/xpcshell/test_Capabilities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ add_task(function test_Capabilities_ctor_bidi() {
426426
equal(false, caps.get("acceptInsecureCerts"));
427427
ok(!caps.has("timeouts"));
428428
ok(caps.get("proxy") instanceof ProxyConfiguration);
429-
ok(!caps.has("setWindowRect"));
429+
ok(caps.has("setWindowRect"));
430430
ok(!caps.has("strictFileInteractability"));
431431
ok(!caps.has("webSocketUrl"));
432432

testing/web-platform/mozilla/tests/webdriver/bidi/session/new/response.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ async def test_capability_type(new_session, add_browser_capabilities):
2626
("browserVersion", str),
2727
("platformName", str),
2828
("proxy", dict),
29+
("setWindowRect", bool),
2930
("userAgent", str),
3031
]
3132

0 commit comments

Comments
 (0)