mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +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
Notes:
sideshowbarker
2024-07-18 20:27:45 +09:00
Author: https://github.com/trflynn89
Commit: 5496d71e4a
Pull-request: https://github.com/SerenityOS/serenity/pull/6272
Reviewed-by: https://github.com/gmta
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