mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-19 19:15:19 +00:00
Headless: Remove uneeded URL validity check
All of the URLs in the browser options must be valid.
This commit is contained in:
parent
8794bf568a
commit
8d0fb91450
Notes:
github-actions[bot]
2025-04-19 11:19:44 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/8d0fb91450b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4401 Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 0 additions and 4 deletions
|
@ -85,10 +85,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
VERIFY(!WebView::Application::browser_options().urls.is_empty());
|
||||
auto const& url = WebView::Application::browser_options().urls.first();
|
||||
if (!url.is_valid()) {
|
||||
warnln("Invalid URL: \"{}\"", url);
|
||||
return Error::from_string_literal("Invalid URL");
|
||||
}
|
||||
|
||||
if (app->dump_layout_tree || app->dump_text) {
|
||||
Ladybird::Test test { app->dump_layout_tree ? Ladybird::TestMode::Layout : Ladybird::TestMode::Text };
|
||||
|
|
Loading…
Add table
Reference in a new issue