mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:17:44 +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:
parent
fc03f8d959
commit
5496d71e4a
5 changed files with 37 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue