w3c / webdriver-bidi

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

Update get matching cookies algorithm to make it more convenient for implementation. #655

Closed lutien closed 4 months ago

lutien commented 4 months ago

Get matching cookies algorithm is used in getCookies and deleteCookies commands, and at the moment we return from the algorithm serialized cookies which is convenient for getCookies command where we return matched cookies to a client, but for deleteCookies it would be easier for implementation to get non-serialized cookies to work with platform API to delete them. This is a proposal to change the approach and rather deserialize the filter argument to match the cookies and move cookie serialization step to getCookies command after matching step.


Preview | Diff