mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +00:00
LibWebView+WebContent: Implement basic DevTools console support
This commit is contained in:
parent
c5a22a1a97
commit
ffdce78b7b
Notes:
github-actions[bot]
2025-03-04 20:34:44 +00:00
Author: https://github.com/trflynn89
Commit: ffdce78b7b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3801
Reviewed-by: https://github.com/AtkinsSJ
13 changed files with 128 additions and 4 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue