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/Libraries/LibWeb/OutOfProcessWebView.cpp | |
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/Libraries/LibWeb/OutOfProcessWebView.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/OutOfProcessWebView.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp b/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp index 5fc2dc2d82..ff0eb2b63c 100644 --- a/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp +++ b/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp @@ -299,4 +299,9 @@ WebContentClient& OutOfProcessWebView::client() return *m_client_state.client; } +void OutOfProcessWebView::debug_request(const String& request, const String& argument) +{ + client().post_message(Messages::WebContentServer::DebugRequest(request, argument)); +} + } |