Open lutien opened 4 months ago
That make sense to me. We should not silently ignore it which could lead to false results.
It looks like the algorithm https://w3c.github.io/webdriver-bidi/#get-the-cookie-store does the validation (for the storage existence) already? I think it is strictly speaking not required to have a user context to access a storage partition with a user context id key matching to a certain string. It also might be useful for testing browser implementations.
To align with other commands in case of using in
partition
fielduserContext
id when sending one of the cookie commands, we should probably validate if the user context associated with the provided id exists and throw theno such user context
error in case it doesn't.