Closed Bug 1887871 Opened 2 months ago Closed 1 month ago

"session.subscribe" and "session.unsubscribe" should raise "invalid argument" error when "events" or "contexts" arguments are empty arrays

Categories

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

task
Points:
1

Tracking

(firefox126 fixed)

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: Sasha, Assigned: Sasha)

References

(Blocks 1 open bug)

Details

(Whiteboard: [webdriver:m11][webdriver:relnote])

Attachments

(1 file)

Recently, the spec around "session.subscribe" and "session.unsubscribe" was updated to no allow an empty array as a value for events and contexts argument (see https://github.com/w3c/webdriver-bidi/pull/679), so we should update our implementation to raise an "invalid argument" error in such cases.
Invalid test cases were already added on Github with: https://github.com/web-platform-tests/wpt/pull/44985.

Assignee: nobody → aborovova
Status: NEW → ASSIGNED
Pushed by aborovova@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5b3cd45ae141
"session.subscribe" and "session.unsubscribe" should raise "invalid argument" error when "events" or "contexts" argument are empty arrays. r=webdriver-reviewers,jdescottes
Points: --- → 1
Priority: -- → P2
Whiteboard: [webdriver:m11]
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
Whiteboard: [webdriver:m11] → [webdriver:m11][webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: