mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:37:36 +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
|
@ -24,6 +24,8 @@ public:
|
|||
void set_cookies_entries(Vector<Web::Cookie::Cookie> entries);
|
||||
void clear_cookies();
|
||||
|
||||
Function<void(Web::Cookie::Cookie)> on_update_cookie;
|
||||
|
||||
void set_local_storage_entries(OrderedHashMap<String, String> entries);
|
||||
void clear_local_storage_entries();
|
||||
|
||||
|
@ -33,10 +35,13 @@ public:
|
|||
private:
|
||||
StorageWidget();
|
||||
|
||||
void delete_cookie(Web::Cookie::Cookie);
|
||||
|
||||
RefPtr<GUI::TableView> m_cookies_table_view;
|
||||
RefPtr<GUI::TextBox> m_cookies_textbox;
|
||||
RefPtr<CookiesModel> m_cookies_model;
|
||||
RefPtr<GUI::FilteringProxyModel> m_cookies_filtering_model;
|
||||
RefPtr<GUI::Menu> m_cookies_context_menu;
|
||||
|
||||
RefPtr<GUI::TableView> m_local_storage_table_view;
|
||||
RefPtr<GUI::TextBox> m_local_storage_textbox;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue