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.
Get matching cookies algorithm is used in
getCookies
anddeleteCookies
commands, and at the moment we return from the algorithm serialized cookies which is convenient forgetCookies
command where we return matched cookies to a client, but fordeleteCookies
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 thefilter
argument to match the cookies and move cookie serialization step togetCookies
command after matching step.Preview | Diff