LibWeb+LibWebView+WebContent+UI: Port the document title to UTF-16

This commit is contained in:
Timothy Flynn
2025-07-28 16:51:01 -04:00
committed by Tim Flynn
parent 13ed6aba71
commit 50fed1d65c
Notes: github-actions[bot] 2025-08-02 17:11:26 +00:00
24 changed files with 90 additions and 59 deletions

View File

@@ -522,7 +522,7 @@ Messages::WebDriverClient::GetTitleResponse WebDriverConnection::get_title()
// 2. Handle any user prompts and return its value if it is an error.
handle_any_user_prompts([this]() {
// 3. Let title be the initial value of the title IDL attribute of the current top-level browsing context's active document.
auto title = current_top_level_browsing_context()->active_document()->title();
auto title = current_top_level_browsing_context()->active_document()->title().to_utf8();
// 4. Return success with data title.
async_driver_execution_complete({ move(title) });