summaryrefslogtreecommitdiff
path: root/Userland/Applications/Browser/Tab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/Browser/Tab.cpp')
-rw-r--r--Userland/Applications/Browser/Tab.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Applications/Browser/Tab.cpp b/Userland/Applications/Browser/Tab.cpp
index 1306e1f0df..b149d5fa47 100644
--- a/Userland/Applications/Browser/Tab.cpp
+++ b/Userland/Applications/Browser/Tab.cpp
@@ -614,6 +614,10 @@ void Tab::show_storage_inspector()
storage_window->set_title("Storage inspector");
storage_window->set_icon(g_icon_bag.cookie);
m_storage_widget = storage_window->set_main_widget<StorageWidget>();
+ m_storage_widget->on_update_cookie = [this](Web::Cookie::Cookie cookie) {
+ if (on_update_cookie)
+ on_update_cookie(url(), move(cookie));
+ };
}
if (on_get_cookies_entries) {