Skip to content

Commit

Permalink
UI/Qt: Add menu action to clear all cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
rmg-x committed Jan 4, 2025
1 parent e45929e commit ed7c48d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UI/Qt/BrowserWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit ed7c48d

Please sign in to comment.