mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibWeb+WebContent: Add option to dump session history of a traversable
This commit is contained in:
parent
537bf4c917
commit
aef4b84e22
4 changed files with 37 additions and 0 deletions
|
@ -195,6 +195,12 @@ BrowserWindow::BrowserWindow(Vector<URL> const& initial_urls, WebView::CookieJar
|
|||
|
||||
auto* debug_menu = menuBar()->addMenu("&Debug");
|
||||
|
||||
auto* dump_session_history_tree_action = new QAction("Dump Session History Tree", this);
|
||||
debug_menu->addAction(dump_session_history_tree_action);
|
||||
QObject::connect(dump_session_history_tree_action, &QAction::triggered, this, [this] {
|
||||
debug_request("dump-session-history");
|
||||
});
|
||||
|
||||
auto* dump_dom_tree_action = new QAction("Dump &DOM Tree", this);
|
||||
dump_dom_tree_action->setIcon(QIcon(QString("%1/res/icons/browser/dom-tree.png").arg(s_serenity_resource_root.characters())));
|
||||
debug_menu->addAction(dump_dom_tree_action);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue