mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +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
|
@ -422,7 +422,7 @@ static void run_test(HeadlessWebView& view, Test& test, Application& app)
|
|||
view.on_test_finish = {};
|
||||
|
||||
promise->when_resolved([&view, &test, &app](auto) {
|
||||
auto url = URL::create_with_file_scheme(MUST(FileSystem::real_path(test.input_path)));
|
||||
auto url = URL::create_with_file_scheme(MUST(FileSystem::real_path(test.input_path))).release_value();
|
||||
|
||||
switch (test.mode) {
|
||||
case TestMode::Crash:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue