mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 17:58:49 +00:00
LibURL+LibWeb: Make URL serialization return a String
This can only ever fail from OOM, and will never by string containing random byte sequences.
This commit is contained in:
parent
9724c67be2
commit
8f6fe1de83
Notes:
github-actions[bot]
2024-11-23 15:44:52 +00:00
Author: https://github.com/shannonbooth
Commit: 8f6fe1de83
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2518
15 changed files with 24 additions and 30 deletions
|
@ -43,7 +43,7 @@ ErrorOr<String> generate_new_blob_url()
|
|||
|
||||
// 6. If serialized is "null", set it to an implementation-defined value.
|
||||
if (serialized == "null"sv)
|
||||
serialized = "ladybird"sv;
|
||||
serialized = "ladybird"_string;
|
||||
|
||||
// 7. Append serialized to result.
|
||||
TRY(result.try_append(serialized));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue