LibWeb: Remove a bunch of calls to to_byte_string

A bunch of this is leftover from pre porting over to new AK::String.
For example, for functions which previously took a ByteString const&
now accepting a StringView.
This commit is contained in:
Shannon Booth
2024-04-05 09:26:03 +02:00
committed by Tim Flynn
parent 0090b916dd
commit c3217754f1
15 changed files with 21 additions and 30 deletions

View File

@@ -504,7 +504,7 @@ void HTMLHyperlinkElementUtils::follow_the_hyperlink(Optional<String> hyperlink_
if (!url.is_valid())
return;
auto url_string = url.to_byte_string();
auto url_string = MUST(url.to_string());
// 10. If hyperlinkSuffix is non-null, then append it to urlString.
if (hyperlink_suffix.has_value()) {
@@ -512,7 +512,7 @@ void HTMLHyperlinkElementUtils::follow_the_hyperlink(Optional<String> hyperlink_
url_builder.append(url_string);
url_builder.append(*hyperlink_suffix);
url_string = url_builder.to_byte_string();
url_string = MUST(url_builder.to_string());
}
// FIXME: 11. Let referrerPolicy be the current state of subject's referrerpolicy content attribute.