LibWebView+WebContent: Transfer inspected DOM info over IPC as String

Let's avoid a whole bunch of String to ByteString to String conversions.
This commit is contained in:
Timothy Flynn
2025-02-21 11:51:05 -05:00
committed by Tim Flynn
parent 1e841cd453
commit 5478f34992
6 changed files with 44 additions and 44 deletions

View File

@@ -371,7 +371,7 @@ void Application::inspect_tab(DevTools::TabDescription const& description, DevTo
return;
}
view->on_received_dom_tree = [&view = *view, on_complete = move(on_complete)](ByteString const& dom_tree) {
view->on_received_dom_tree = [&view = *view, on_complete = move(on_complete)](String const& dom_tree) {
view.on_received_dom_tree = nullptr;
if (auto parsed_tree = JsonValue::from_string(dom_tree); parsed_tree.is_error()) {