1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:57:45 +00:00

Browser: Set all cookies at once instead adding them separately

This commit is contained in:
Rafał Babiarz 2022-05-04 21:53:01 +02:00 committed by Linus Groh
parent dc66d16dc2
commit ac991b0a89
5 changed files with 9 additions and 8 deletions

View file

@ -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) {