LibWebView+WebContent: Implement basic DevTools console support

This commit is contained in:
Timothy Flynn 2025-03-04 08:48:20 -05:00 committed by Tim Flynn
parent c5a22a1a97
commit ffdce78b7b
Notes: github-actions[bot] 2025-03-04 20:34:44 +00:00
13 changed files with 128 additions and 4 deletions

View file

@ -385,6 +385,14 @@ void WebContentClient::did_get_styled_js_console_messages(u64 page_id, i32 start
}
}
void WebContentClient::did_get_unstyled_js_console_messages(u64 page_id, i32 start_index, Vector<ConsoleOutput> const& console_output)
{
if (auto view = view_for_page_id(page_id); view.has_value()) {
if (view->on_received_unstyled_console_messages)
view->on_received_unstyled_console_messages(start_index, move(const_cast<Vector<ConsoleOutput>&>(console_output)));
}
}
void WebContentClient::did_request_alert(u64 page_id, String const& message)
{
if (auto view = view_for_page_id(page_id); view.has_value()) {