diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-08 19:50:14 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-08 21:53:20 +0100 |
commit | 3f9fc0f6901f3145d58b0813c8dd022c2fc5a8c2 (patch) | |
tree | c41a8da747ee108b74eafb52bdf234c19f259769 /Userland/Applications | |
parent | 47979996e832bdd05440c4a9437920863543441d (diff) | |
download | serenity-3f9fc0f6901f3145d58b0813c8dd022c2fc5a8c2.zip |
Browser+LibWeb: Add "Dump Local Storage" item to Browser's Debug menu
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/Browser/BrowserWindow.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Applications/Browser/BrowserWindow.cpp b/Userland/Applications/Browser/BrowserWindow.cpp index f5866d7666..ac4c3dc01a 100644 --- a/Userland/Applications/Browser/BrowserWindow.cpp +++ b/Userland/Applications/Browser/BrowserWindow.cpp @@ -306,6 +306,9 @@ void BrowserWindow::build_menus() if (tab.on_dump_cookies) tab.on_dump_cookies(); })); + debug_menu.add_action(GUI::Action::create("Dump &Local Storage", [this](auto&) { + active_tab().m_web_content_view->debug_request("dump-local-storage"); + })); debug_menu.add_separator(); auto line_box_borders_action = GUI::Action::create_checkable( "Line &Box Borders", [this](auto& action) { |