New session response does not include required property setWindowRect
Categories
(Remote Protocol :: Agent, defect, P3)
Tracking
(firefox147 fixed)
| Tracking | Status | |
|---|---|---|
| firefox147 | --- | fixed |
People
(Reporter: james.h.evans.jr, Assigned: whimboo)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [webdriver:m18][webdriver:relnote])
Attachments
(1 file)
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.
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
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.
| Assignee | ||
Updated•1 year ago
|
It is impossible to write a client that strictly adheres to the WebDriver BiDi protocol and create a BiDi-only session with Firefox while this bug is present. The protocol requires the presence of the setWindowRect property in the New Session command response, and the client will (and should) throw if the property is omitted from the response. Either Mozilla should make Firefox spec-compliant, or the spec should be change to allow the presence of the setWindowRect property to be optional in the response for the New Session command.
Note, I don't have a preference for which route is taken, only that one is taken.
| Assignee | ||
Comment 3•1 month ago
|
||
With out a BiDi-only infrastructure for WebDriver tests this will not be testable at the moment - at least for us given that we only support a single WebDriver session.
| Assignee | ||
Comment 4•1 month ago
|
||
Updated•1 month ago
|
| Assignee | ||
Comment 5•1 month ago
|
||
The attached patch makes our implementation WebDriver BiDi spec compatible.
| Assignee | ||
Updated•1 month ago
|
Comment 7•1 month ago
|
||
| bugherder | ||
| Assignee | ||
Updated•9 days ago
|
| Assignee | ||
Updated•9 days ago
|
Description
•