mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
xml: Remove validity check on URL created with file scheme
It is not possible for this to return an invalid URL.
This commit is contained in:
parent
2c8dab36f3
commit
c86b5068d0
Notes:
github-actions[bot]
2025-02-19 13:03:25 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/c86b5068d0e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3609 Reviewed-by: https://github.com/trflynn89
1 changed files with 0 additions and 5 deletions
|
@ -434,11 +434,6 @@ 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());
|
||||
if (!url.is_valid()) {
|
||||
warnln("Invalid URL {}", path_builder.string_view());
|
||||
s_test_results.set(path_builder.string_view(), TestResult::RunnerFailed);
|
||||
continue;
|
||||
}
|
||||
|
||||
auto file_path = URL::percent_decode(url.serialize_path());
|
||||
auto file_result = Core::File::open(file_path, Core::File::OpenMode::Read);
|
||||
|
|
Loading…
Add table
Reference in a new issue