summaryrefslogtreecommitdiff
path: root/Userland/Applications/Browser/Tab.h
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-04-12 12:12:13 -0400
committerAndreas Kling <kling@serenityos.org>2021-04-12 22:37:00 +0200
commit5496d71e4a5316df320885cdb48adfb0f6b4f647 (patch)
treef5e98b06294a42f65a51f50457948d5f5b818e68 /Userland/Applications/Browser/Tab.h
parentfc03f8d959daa5b3f6846dafca521a7fe13d41c1 (diff)
downloadserenity-5496d71e4a5316df320885cdb48adfb0f6b4f647.zip
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.
Diffstat (limited to 'Userland/Applications/Browser/Tab.h')
-rw-r--r--Userland/Applications/Browser/Tab.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/Browser/Tab.h b/Userland/Applications/Browser/Tab.h
index b880eff5f7..8a2c008686 100644
--- a/Userland/Applications/Browser/Tab.h
+++ b/Userland/Applications/Browser/Tab.h
@@ -72,6 +72,7 @@ public:
Function<void(const Gfx::Bitmap&)> on_favicon_change;
Function<String(const URL& url)> on_get_cookie;
Function<void(const URL& url, const String& cookie)> on_set_cookie;
+ Function<void()> on_dump_cookies;
const String& title() const { return m_title; }
const Gfx::Bitmap* icon() const { return m_icon; }