mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb+LibWebView+WebContent+UI: Port the document title to UTF-16
This commit is contained in:
Notes:
github-actions[bot]
2025-08-02 17:11:26 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/50fed1d65ce Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5633 Reviewed-by: https://github.com/gmta
@@ -324,7 +324,7 @@ void Application::launch_spare_web_content_process()
|
||||
m_spare_web_content_process = web_content_client.release_value();
|
||||
|
||||
if (auto process = find_process(m_spare_web_content_process->pid()); process.has_value())
|
||||
process->set_title("(spare)"_string);
|
||||
process->set_title("(spare)"_utf16);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -594,7 +594,7 @@ Vector<DevTools::TabDescription> Application::tab_list() const
|
||||
Vector<DevTools::TabDescription> tabs;
|
||||
|
||||
ViewImplementation::for_each_view([&](ViewImplementation& view) {
|
||||
tabs.empend(view.view_id(), MUST(String::from_byte_string(view.title())), view.url().to_string());
|
||||
tabs.empend(view.view_id(), view.title().to_utf8(), view.url().to_string());
|
||||
return IterationDecision::Continue;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user