mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 18:00:16 +00:00
LibWebView: Add context menu support to the Inspector's cookie table
The menu can currently support deleting a specific cookie or all cookies for the current page.
This commit is contained in:
parent
3c5650f846
commit
fc809f9755
Notes:
github-actions[bot]
2024-09-07 09:11:36 +00:00
Author: https://github.com/trflynn89
Commit: fc809f9755
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1302
13 changed files with 73 additions and 0 deletions
|
@ -39,10 +39,13 @@ public:
|
|||
void context_menu_add_dom_node_attribute();
|
||||
void context_menu_remove_dom_node_attribute();
|
||||
void context_menu_copy_dom_node_attribute_value();
|
||||
void context_menu_delete_cookie();
|
||||
void context_menu_delete_all_cookies();
|
||||
|
||||
Function<void(Gfx::IntPoint)> on_requested_dom_node_text_context_menu;
|
||||
Function<void(Gfx::IntPoint, String const&)> on_requested_dom_node_tag_context_menu;
|
||||
Function<void(Gfx::IntPoint, String const&, Attribute const&)> on_requested_dom_node_attribute_context_menu;
|
||||
Function<void(Gfx::IntPoint, Web::Cookie::Cookie const&)> on_requested_cookie_context_menu;
|
||||
|
||||
private:
|
||||
void load_inspector();
|
||||
|
@ -85,6 +88,7 @@ private:
|
|||
HashMap<int, Vector<Attribute>> m_dom_node_attributes;
|
||||
|
||||
Vector<Web::Cookie::Cookie> m_cookies;
|
||||
Optional<size_t> m_cookie_context_menu_index;
|
||||
|
||||
i32 m_highest_notified_message_index { -1 };
|
||||
i32 m_highest_received_message_index { -1 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue