w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
336 stars 35 forks source link

Better CDDL for `session.SubscriptionRequest` #679

Closed Lightning00Blade closed 3 months ago

Lightning00Blade commented 4 months ago

Splitting from #628. As I think this make sense regardless of the outcome of that PR. Motivation here is that the algorithms for both empty cases become no-op if the lists are empty - For events: Update the event map Step 5 -> Step 7.1.1 is looped over a empty list. For Contexts: Update the event map Step 5 -> Step 8.3.2 is looped over a empty list.

The part about contexts: [] becomes consistent with addPreloadScript and addInterception as they both fail on empty list.


Preview | Diff

Lightning00Blade commented 4 months ago

Waiting for another vendor to approve and I will create a PR before merging this.

Lightning00Blade commented 3 months ago

Opened - https://github.com/web-platform-tests/wpt/pull/44985