Skip to content

Commit b365e94

Browse files
rmg-xpbrw
authored andcommitted
UI/Qt: Add menu action to clear all cookies
1 parent 3f46432 commit b365e94

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

UI/Qt/BrowserWindow.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,12 @@ BrowserWindow::BrowserWindow(Vector<URL::URL> const& initial_urls, IsPopupWindow
480480
debug_request("clear-cache");
481481
});
482482

483+
auto* clear_all_cookies_action = new QAction("Clear all Cookies", this);
484+
debug_menu->addAction(clear_all_cookies_action);
485+
QObject::connect(clear_all_cookies_action, &QAction::triggered, this, [] {
486+
WebView::Application::cookie_jar().clear_all_cookies();
487+
});
488+
483489
auto* spoof_user_agent_menu = debug_menu->addMenu("Spoof &User Agent");
484490
spoof_user_agent_menu->setIcon(load_icon_from_uri("resource://icons/16x16/spoof.png"sv));
485491

0 commit comments

Comments
 (0)