diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-31 09:06:25 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-31 09:07:46 +0100 |
commit | df2a4adcd2e34a7998c181f088aa121fa5bbc4ff (patch) | |
tree | 63d64335db4581fc1a526663d9034d858faf7805 /Userland/Applications/Browser | |
parent | 1dad47c0f9fde14f9cdd421cc257a520fa658cb0 (diff) | |
download | serenity-df2a4adcd2e34a7998c181f088aa121fa5bbc4ff.zip |
Browser+LibWeb+WebContent: Make the "Debug" menu work in multi-process
This patch adds an IPC call for debugging requests. It's stringly typed
and very simple, and allows us to easily implement all the features in
the Browser's Debug menu.
Diffstat (limited to 'Userland/Applications/Browser')
-rw-r--r-- | Userland/Applications/Browser/Tab.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Applications/Browser/Tab.cpp b/Userland/Applications/Browser/Tab.cpp index ea23d61d73..8a307ae684 100644 --- a/Userland/Applications/Browser/Tab.cpp +++ b/Userland/Applications/Browser/Tab.cpp @@ -362,7 +362,7 @@ Tab::Tab(Type type) if (m_type == Type::InProcessWebView) { Web::dump_tree(*m_page_view->document()); } else { - TODO(); + m_web_content_view->debug_request("dump-dom-tree"); } }, this)); @@ -371,7 +371,7 @@ Tab::Tab(Type type) if (m_type == Type::InProcessWebView) { Web::dump_tree(*m_page_view->document()->layout_node()); } else { - TODO(); + m_web_content_view->debug_request("dump-layout-tree"); } }, this)); @@ -382,7 +382,7 @@ Tab::Tab(Type type) Web::dump_sheet(sheet); } } else { - TODO(); + m_web_content_view->debug_request("dump-style-sheets"); } }, this)); @@ -396,7 +396,7 @@ Tab::Tab(Type type) m_page_view->set_should_show_line_box_borders(action.is_checked()); m_page_view->update(); } else { - TODO(); + m_web_content_view->debug_request("set-line-box-borders", action.is_checked() ? "on" : "off"); } }, this); @@ -410,7 +410,7 @@ Tab::Tab(Type type) document->interpreter().heap().collect_garbage(JS::Heap::CollectionType::CollectGarbage, true); } } else { - TODO(); + m_web_content_view->debug_request("collect-garbage"); } })); |