mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
Everywhere: Use unqualified AK::URL
Now possible in LibWeb now that there is no longer a Web::URL.
This commit is contained in:
parent
f9e5b43b7a
commit
9ce8189f21
156 changed files with 471 additions and 471 deletions
|
@ -82,7 +82,7 @@ ErrorOr<void> remove_entry_from_blob_url_store(StringView url)
|
|||
auto& store = blob_url_store();
|
||||
|
||||
// 2. Let url string be the result of serializing url.
|
||||
auto url_string = TRY(AK::URL { url }.to_string());
|
||||
auto url_string = TRY(URL { url }.to_string());
|
||||
|
||||
// 3. Remove store[url string].
|
||||
store.remove(url_string);
|
||||
|
|
|
@ -70,7 +70,7 @@ WebIDL::ExceptionOr<FileReader::Result> FileReader::blob_package_data(JS::Realm&
|
|||
// Return bytes as a DataURL [RFC2397] subject to the considerations below:
|
||||
// Use mimeType as part of the Data URL if it is available in keeping with the Data URL specification [RFC2397].
|
||||
// If mimeType is not available return a Data URL without a media-type. [RFC2397].
|
||||
return MUST(AK::URL::create_with_data(mime_type.value_or(String {}), MUST(encode_base64(bytes)), true).to_string());
|
||||
return MUST(URL::create_with_data(mime_type.value_or(String {}), MUST(encode_base64(bytes)), true).to_string());
|
||||
case Type::Text: {
|
||||
// 1. Let encoding be failure.
|
||||
Optional<StringView> encoding;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue