mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWebView+WebContent: Begin supporting the DevTools JavaScript console
This supports evaluating the script and replying with the result. We currently serialize JS objects to a string, but we will need to support dynamic interaction with the objects over IPC. This does not yet support sending console messages to DevTools.
This commit is contained in:
parent
6d33b70e61
commit
32bc2dc7b6
Notes:
github-actions[bot]
2025-02-28 12:09:35 +00:00
Author: https://github.com/trflynn89
Commit: 32bc2dc7b6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3686
10 changed files with 101 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/JsonValue.h>
|
||||
#include <LibGfx/ShareableBitmap.h>
|
||||
#include <LibJS/Console.h>
|
||||
#include <LibJS/Runtime/ConsoleObject.h>
|
||||
|
@ -750,6 +751,11 @@ void PageClient::initialize_js_console(Web::DOM::Document& document)
|
|||
document.set_console_client(console_client);
|
||||
}
|
||||
|
||||
void PageClient::did_execute_js_console_input(JsonValue result)
|
||||
{
|
||||
client().async_did_execute_js_console_input(m_id, move(result));
|
||||
}
|
||||
|
||||
void PageClient::js_console_input(StringView js_source)
|
||||
{
|
||||
if (m_top_level_document_console_client)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue