mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibURL: Implement create_with_file_scheme using URL Parser
Creating a URL should almost always go through the URLParser to handle all of the small edge cases involved. This reduces the need for URL valid state.
This commit is contained in:
parent
9c758e5f65
commit
2072eee83d
Notes:
github-actions[bot]
2025-04-19 11:20:23 +00:00
Author: https://github.com/shannonbooth
Commit: 2072eee83d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4401
Reviewed-by: https://github.com/trflynn89 ✅
4 changed files with 17 additions and 13 deletions
|
@ -435,7 +435,7 @@ static void do_run_tests(XML::Document& document)
|
|||
path_builder.append(suite.attributes.find("URI")->value);
|
||||
auto url = URL::create_with_file_scheme(path_builder.string_view());
|
||||
|
||||
auto file_path = URL::percent_decode(url.serialize_path());
|
||||
auto file_path = URL::percent_decode(url->serialize_path());
|
||||
auto file_result = Core::File::open(file_path, Core::File::OpenMode::Read);
|
||||
if (file_result.is_error()) {
|
||||
warnln("Read error for {}: {}", file_path, file_result.error());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue