mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-27 19:29:52 +00:00
LibWebView+WebContent: Remove "styled" JS console IPC hooks
This was used by the built-in Inspector to send HTML-ified JS console messages to the browser. It is no longer used.
This commit is contained in:
parent
a5f3a60ed5
commit
5d0fbc85e5
Notes:
github-actions[bot]
2025-03-27 14:15:12 +00:00
Author: https://github.com/trflynn89
Commit: 5d0fbc85e5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4117
Reviewed-by: https://github.com/gmta ✅
8 changed files with 12 additions and 29 deletions
|
@ -393,19 +393,11 @@ void WebContentClient::did_output_js_console_message(u64 page_id, i32 message_in
|
|||
}
|
||||
}
|
||||
|
||||
void WebContentClient::did_get_styled_js_console_messages(u64 page_id, i32 start_index, Vector<String> message_types, Vector<String> messages)
|
||||
void WebContentClient::did_get_js_console_messages(u64 page_id, i32 start_index, Vector<ConsoleOutput> console_output)
|
||||
{
|
||||
if (auto view = view_for_page_id(page_id); view.has_value()) {
|
||||
if (view->on_received_styled_console_messages)
|
||||
view->on_received_styled_console_messages(start_index, message_types, messages);
|
||||
}
|
||||
}
|
||||
|
||||
void WebContentClient::did_get_unstyled_js_console_messages(u64 page_id, i32 start_index, Vector<ConsoleOutput> 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(console_output));
|
||||
if (view->on_received_console_messages)
|
||||
view->on_received_console_messages(start_index, move(console_output));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue