mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
AK: Remove URL::ApplyPercentEncoding
Everywhere only ever expects percent encoding to occur, so let's just remove this flag altogether. At the same time, replace some DeprecatedString with StringView.
This commit is contained in:
parent
c4d7be100e
commit
98666b012d
Notes:
sideshowbarker
2024-07-17 16:23:06 +09:00
Author: https://github.com/shannonbooth
Commit: 98666b012d
Pull-request: https://github.com/SerenityOS/serenity/pull/20387
6 changed files with 30 additions and 45 deletions
|
@ -309,7 +309,7 @@ WebIDL::ExceptionOr<void> Location::set_hash(String const& value)
|
|||
auto input = value.bytes_as_string_view().trim("#"sv, TrimMode::Left);
|
||||
|
||||
// 5. Set copyURL's fragment to the empty string.
|
||||
copy_url.set_fragment("");
|
||||
copy_url.set_fragment(""sv);
|
||||
|
||||
// 6. Basic URL parse input, with copyURL as url and fragment state as state override.
|
||||
auto result_url = URLParser::basic_parse(input, {}, copy_url, URLParser::State::Fragment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue