1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 16:17:47 +00:00

Browser: Add debug command to dump cookies

Using document.cookie only lets the test page see the name/value pair;
the value returned will not included the parsed attributes.
This commit is contained in:
Timothy Flynn 2021-04-12 12:12:13 -04:00 committed by Andreas Kling
parent fc03f8d959
commit 5496d71e4a
5 changed files with 37 additions and 0 deletions

View file

@ -48,6 +48,7 @@ class CookieJar {
public:
String get_cookie(const URL& url) const;
void set_cookie(const URL& url, const String& cookie);
void dump_cookies() const;
private:
static Optional<String> canonicalize_domain(const URL& url);