mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
UI/AppKit: Add debug menu to clear all cookies
This commit is contained in:
parent
d8b0b1535b
commit
0d92cd1f36
Notes:
github-actions[bot]
2025-01-10 14:58:27 +00:00
Author: https://github.com/warpdesign Commit: https://github.com/LadybirdBrowser/ladybird/commit/0d92cd1f362 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3195 Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 9 additions and 0 deletions
|
@ -367,6 +367,11 @@
|
|||
WebView::Application::cookie_jar().dump_cookies();
|
||||
}
|
||||
|
||||
- (void)clearAllCookies:(id)sender
|
||||
{
|
||||
WebView::Application::cookie_jar().clear_all_cookies();
|
||||
}
|
||||
|
||||
- (NSMenuItem*)createApplicationMenu
|
||||
{
|
||||
auto* menu = [[NSMenuItem alloc] init];
|
||||
|
@ -662,6 +667,10 @@
|
|||
[submenu addItem:[[NSMenuItem alloc] initWithTitle:@"Clear Cache"
|
||||
action:@selector(clearCache:)
|
||||
keyEquivalent:@""]];
|
||||
[submenu addItem:[[NSMenuItem alloc] initWithTitle:@"Clear All Cookies"
|
||||
action:@selector(clearAllCookies:)
|
||||
keyEquivalent:@""]];
|
||||
|
||||
[submenu addItem:[NSMenuItem separatorItem]];
|
||||
|
||||
auto* spoof_user_agent_menu = [[NSMenu alloc] init];
|
||||
|
|
Loading…
Add table
Reference in a new issue