mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
UI/Qt: Add menu action to clear all cookies
This commit is contained in:
parent
dc34aeb764
commit
ba6b5adde3
Notes:
github-actions[bot]
2025-01-05 13:59:28 +00:00
Author: https://github.com/rmg-x Commit: https://github.com/LadybirdBrowser/ladybird/commit/ba6b5adde37 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3141 Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 6 additions and 0 deletions
|
@ -480,6 +480,12 @@ BrowserWindow::BrowserWindow(Vector<URL::URL> const& initial_urls, IsPopupWindow
|
|||
debug_request("clear-cache");
|
||||
});
|
||||
|
||||
auto* clear_all_cookies_action = new QAction("Clear all Cookies", this);
|
||||
debug_menu->addAction(clear_all_cookies_action);
|
||||
QObject::connect(clear_all_cookies_action, &QAction::triggered, this, [] {
|
||||
WebView::Application::cookie_jar().clear_all_cookies();
|
||||
});
|
||||
|
||||
auto* spoof_user_agent_menu = debug_menu->addMenu("Spoof &User Agent");
|
||||
spoof_user_agent_menu->setIcon(load_icon_from_uri("resource://icons/16x16/spoof.png"sv));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue