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:
parent
c11462f40e
commit
4d9c0c7b22
5 changed files with 53 additions and 1 deletions
|
@ -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()];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue