Closed Bug 1926614 Opened 1 year ago Closed 21 days ago

[wdspec] WebDriver BiDi client modules should validate data types in command responses

Categories

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

task

Tracking

(firefox149 fixed)

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: whimboo, Assigned: khalid.alhaddad98, Mentored)

Details

(Whiteboard: [webdriver:m19][webdriver:external][lang=py], [wptsync upstream])

Attachments

(2 files, 1 obsolete file)

Some of the existing modules at the following location already check value types for validity:
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/tools/webdriver/webdriver/bidi/modules

Given that this is a test client we should do these checks for every command in each of the listed modules.

If needed we can do the commands first and events later, but preferable we could have both at once.

Mentor: hskupin
Priority: -- → P3
Summary: [wdspec] WebDriver BiDi client modules should validate value types for response data → [wdspec] WebDriver BiDi client modules should validate data types in command responses
Whiteboard: [lang=py]

@Khalid maybe this would be an interesting bug for you. Here you would have to work with the WebDriver BiDi specification to find the proper types to check.

Summary: [wdspec] WebDriver BiDi client modules should validate data types in command responses → [wdspec] WebDriver BiDi client modules should validate data types in events and command responses
Flags: needinfo?(khalid.alhaddad98)

Yes, I'd be happy to work on it.

Flags: needinfo?(khalid.alhaddad98)

Great to hear that! Let me know if something is unclear. I'm happy to discuss on Matrix (or here as well).

Thank you, and will do if anything comes up.

Assignee: nobody → khalid.alhaddad98
Status: NEW → ASSIGNED

As discussed on Matrix we cannot actually do it for events because we do not have special handling as for commands:

https://searchfox.org/firefox-main/rev/ac7d7c131dd65058ad6b7ecfa65dc8f31a0f203e/testing/web-platform/tests/tools/webdriver/webdriver/bidi/client.py#217-226

Summary: [wdspec] WebDriver BiDi client modules should validate data types in events and command responses → [wdspec] WebDriver BiDi client modules should validate data types in command responses
Attachment #9534630 - Attachment is obsolete: true
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/57288 for changes under testing/web-platform/tests
Whiteboard: [lang=py] → [lang=py], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 21 days ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Upstream PR merged by moz-wptsync-bot

Thank you Khalid! As discussed on Matrix I've taken a look for a next opportunity for you and bug 2003820 would be a good one so that we can clean-up all of our WebDriver related tests. What do you think?

Flags: needinfo?(khalid.alhaddad98)
Whiteboard: [lang=py], [wptsync upstream] → [webdriver:m19][webdriver:external][lang=py], [wptsync upstream]

Yes, I agree it's good.

Flags: needinfo?(khalid.alhaddad98)
Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/67a61fe3c37b https://hg.mozilla.org/integration/autoland/rev/e6ab9bd7c9cc [wpt PR 57288] - [Gecko Bug 1926614] WebDriver BiDi client modules should validate data types in command responses., a=testonly
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: