mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibURL: Make percent_encode return a String
This simplifies a bunch of places which were needing to error check and convert from a ByteString to String.
This commit is contained in:
committed by
Andreas Kling
parent
c58665332e
commit
84a7fead0e
Notes:
github-actions[bot]
2024-08-10 08:47:40 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/84a7fead0ee Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1023 Reviewed-by: https://github.com/awesomekling
@@ -114,7 +114,7 @@ void HTMLHyperlinkElementUtils::set_username(StringView username)
|
||||
return;
|
||||
|
||||
// 4. Set the username given this’s URL and the given value.
|
||||
MUST(url->set_username(username));
|
||||
url->set_username(username);
|
||||
|
||||
// 5. Update href.
|
||||
update_href();
|
||||
@@ -151,7 +151,7 @@ void HTMLHyperlinkElementUtils::set_password(StringView password)
|
||||
return;
|
||||
|
||||
// 4. Set the password, given url and the given value.
|
||||
MUST(url->set_password(password));
|
||||
url->set_password(password);
|
||||
|
||||
// 5. Update href.
|
||||
update_href();
|
||||
|
||||
Reference in New Issue
Block a user