Open Bug 1916522 Opened 5 months ago Updated 5 months ago

New session response does not include required property setWindowRect

Categories

(Remote Protocol :: WebDriver BiDi, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: james.h.evans.jr, Unassigned, Mentored)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [lang=js])

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:129.0) Gecko/20100101 Firefox/129.0

Steps to reproduce:

Attempt to create a new WebDriver BiDi-only session.

Command payload:
{"id":1,"method":"session.new","params":{"capabilities":{}}}

Actual results:

Response value does not have required property setWindowRect.

{"type":"success","id":1,"result":{"sessionId":"29b276c3-2ece-4ea2-b2a6-67566b9bc232","capabilities":{"acceptInsecureCerts":false,"browserName":"firefox","browserVersion":"132.0a1","platformName":"mac","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0","moz:buildID":"20240903092500","moz:headless":false,"moz:platformVersion":"23.6.0","moz:processID":32142,"moz:profile":"/var/folders/c2/b_92c0_j45982zbd3b6vwp0r0000gp/T/webdriverbidi-net-firefox-data-5da7b306-70a5-46b6-8470-af28190e7733","moz:shutdownTimeout":60000,"proxy":{}}}}

Expected results:

According to the command response definition of the new session command (https://w3c.github.io/webdriver-bidi/#command-session-new), the response value should contain a boolean setWindowRect property.

Blocks: 1719290
Status: UNCONFIRMED → NEW
Ever confirmed: true
Version: Firefox 132 → Trunk

For the moment we actually have to return this capability because it is listed as mandatory. But it might change in the future. Right now it's unclear if we need it or not and we can verify once the command to set the window position and size (bug 1855028) has landed for BiDi.

There are a couple of existent WebDriver classic issues around this capability.

To fix it in Firefox we can make it similar to Marionette and return the support based if we are on Android or not.

https://searchfox.org/mozilla-central/rev/c414b4538dd3c7e1dc674f7b66176e7c309afa95/remote/shared/webdriver/Capabilities.sys.mjs#477

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.