summaryrefslogtreecommitdiff
path: root/Userland/Applications/Browser/Tab.cpp
diff options
context:
space:
mode:
authorRafał Babiarz <5783815+Sauler@users.noreply.github.com>2022-05-04 21:53:01 +0200
committerLinus Groh <mail@linusgroh.de>2022-05-05 21:54:38 +0200
commitac991b0a89233a234f3332bffff903f8667cf10a (patch)
tree5aa390ea3993a6d7496789383b16f3afe55dc8d8 /Userland/Applications/Browser/Tab.cpp
parentdc66d16dc2e38f4588b10b655b405857d2784cd7 (diff)
downloadserenity-ac991b0a89233a234f3332bffff903f8667cf10a.zip
Browser: Set all cookies at once instead adding them separately
Diffstat (limited to 'Userland/Applications/Browser/Tab.cpp')
-rw-r--r--Userland/Applications/Browser/Tab.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Applications/Browser/Tab.cpp b/Userland/Applications/Browser/Tab.cpp
index c66291011d..2721bdf775 100644
--- a/Userland/Applications/Browser/Tab.cpp
+++ b/Userland/Applications/Browser/Tab.cpp
@@ -606,8 +606,7 @@ void Tab::show_storage_inspector()
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);
+ m_storage_widget->set_cookies_entries(cookies);
}
if (on_get_local_storage_entries) {