1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:27:34 +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

@ -227,6 +227,10 @@ int main(int argc, char** argv)
cookie_jar.set_cookie(url, cookie);
};
new_tab.on_dump_cookies = [&]() {
cookie_jar.dump_cookies();
};
new_tab.load(url);
dbgln("Added new tab {:p}, loading {}", &new_tab, url);