mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25: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
@@ -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) });
|
||||
|
||||
Reference in New Issue
Block a user