1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:04:59 +00:00

Browser: Add ability to delete cookies from Storage Inspector

Adds actions to delete either a single cookie, or all of them.

This looks weird, because the GUI doesn't update until you "Inspect >
Open Storage Inspector", but it does function. :^)
This commit is contained in:
Sam Atkins 2022-10-20 16:38:20 +01:00 committed by Linus Groh
parent c11462f40e
commit 4d9c0c7b22
5 changed files with 53 additions and 1 deletions

View file

@ -97,4 +97,10 @@ TriState CookiesModel::data_matches(GUI::ModelIndex const& index, GUI::Variant c
return TriState::False;
}
Web::Cookie::Cookie const& CookiesModel::get_cookie(GUI::ModelIndex const& index) const
{
VERIFY(index.is_valid());
return m_cookies[index.row()];
}
}