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:
Timothy Flynn 2025-02-24 11:57:33 -05:00 committed by Andreas Kling
commit 32bc2dc7b6
Notes: github-actions[bot] 2025-02-28 12:09:35 +00:00
10 changed files with 101 additions and 2 deletions

View file

@ -215,6 +215,7 @@ public:
Function<void(Web::UniqueNodeID)> on_received_hovered_node_id;
Function<void(Optional<Web::UniqueNodeID> const& node_id)> on_finshed_editing_dom_node;
Function<void(String const&)> on_received_dom_node_html;
Function<void(JsonValue)> on_received_js_console_result;
Function<void(i32 message_id)> on_received_console_message;
Function<void(i32 start_index, Vector<String> const& message_types, Vector<String> const& messages)> on_received_console_messages;
Function<void(i32 count_waiting)> on_resource_status_change;