In the scope of bug1854580 we added one test which verifies the output of `getCookies` command against the cookies which are sent with network request. To ensure the correctness of the `getCookies` command, we should add more tests like this, e.g. just for a top-level document, for a cross-origin fetch() (with credentials) inside a top-level document, for a cross-origin image, etc.
Bug 1879503 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
In the scope of bug1854580 we added one test which verifies the output of `getCookies` command against the cookies which are sent with network request. To ensure the correctness of the `getCookies` command, we should add more tests like this, e.g. just for a top-level document, for a cross-origin fetch() (with credentials) inside a top-level document, for a cross-origin image, etc. And we should also update the implementation of `getCookies` command to work with `network.cookie.cookieBehavior = 5`, which is a default behaviour, instead of it equals `0` (right now this value is set as pref for CDP).