diff options
-rw-r--r-- | Userland/Applications/Browser/BrowserWindow.cpp | 2 | ||||
-rw-r--r-- | Userland/Applications/Browser/Tab.cpp | 4 | ||||
-rw-r--r-- | Userland/Applications/Browser/Tab.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Applications/Browser/BrowserWindow.cpp b/Userland/Applications/Browser/BrowserWindow.cpp index f67501427b..df31aaa99a 100644 --- a/Userland/Applications/Browser/BrowserWindow.cpp +++ b/Userland/Applications/Browser/BrowserWindow.cpp @@ -551,7 +551,7 @@ void BrowserWindow::create_new_tab(URL url, bool activate) m_cookie_jar.dump_cookies(); }; - new_tab.on_want_cookies = [this]() { + new_tab.on_get_cookies_entries = [this]() { return m_cookie_jar.get_all_cookies(); }; diff --git a/Userland/Applications/Browser/Tab.cpp b/Userland/Applications/Browser/Tab.cpp index 745ae88556..c66291011d 100644 --- a/Userland/Applications/Browser/Tab.cpp +++ b/Userland/Applications/Browser/Tab.cpp @@ -603,8 +603,8 @@ void Tab::show_storage_inspector() m_storage_widget = storage_window->set_main_widget<StorageWidget>(); } - if (on_want_cookies) { - auto cookies = on_want_cookies(); + if (on_get_cookies_entries) { + auto cookies = on_get_cookies_entries(); m_storage_widget->clear_cookies(); for (auto cookie : cookies) m_storage_widget->add_cookie(cookie); diff --git a/Userland/Applications/Browser/Tab.h b/Userland/Applications/Browser/Tab.h index a7bd6f33dc..c444f59274 100644 --- a/Userland/Applications/Browser/Tab.h +++ b/Userland/Applications/Browser/Tab.h @@ -64,7 +64,7 @@ public: Function<String(const URL&, Web::Cookie::Source source)> on_get_cookie; Function<void(const URL&, Web::Cookie::ParsedCookie const& cookie, Web::Cookie::Source source)> on_set_cookie; Function<void()> on_dump_cookies; - Function<Vector<Web::Cookie::Cookie>()> on_want_cookies; + Function<Vector<Web::Cookie::Cookie>()> on_get_cookies_entries; Function<OrderedHashMap<String, String>()> on_get_local_storage_entries; enum class InspectorTarget { |