mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Everywhere: Use URL::about_XXX factory functions
This commit is contained in:
committed by
Tim Ledbetter
parent
07f054e067
commit
9072a7caef
@@ -180,7 +180,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
[self createNewTab:URL::URL("about:version"sv)
|
||||
[self createNewTab:URL::URL(URL::about_version())
|
||||
fromTab:(Tab*)current_tab
|
||||
activateTab:Web::HTML::ActivateTab::Yes];
|
||||
}
|
||||
|
||||
@@ -382,7 +382,7 @@ static void run_test(HeadlessWebView& view, Test& test, Application& app)
|
||||
auto promise = Core::Promise<Empty>::construct();
|
||||
|
||||
view.on_load_finish = [promise](auto const& url) {
|
||||
if (!url.equals("about:blank"sv))
|
||||
if (!url.equals(URL::about_blank()))
|
||||
return;
|
||||
|
||||
Core::deferred_invoke([promise]() {
|
||||
@@ -411,7 +411,7 @@ static void run_test(HeadlessWebView& view, Test& test, Application& app)
|
||||
VERIFY_NOT_REACHED();
|
||||
});
|
||||
|
||||
view.load("about:blank"sv);
|
||||
view.load(URL::about_blank());
|
||||
}
|
||||
|
||||
static void set_ui_callbacks_for_tests(HeadlessWebView& view)
|
||||
|
||||
@@ -63,7 +63,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
{
|
||||
WebView::platform_init();
|
||||
|
||||
auto app = Ladybird::Application::create(arguments, "about:newtab"sv);
|
||||
auto app = Ladybird::Application::create(arguments, URL::about_newtab());
|
||||
TRY(app->launch_services());
|
||||
|
||||
Core::ResourceImplementation::install(make<Core::ResourceImplementationFile>(MUST(String::from_byte_string(app->resources_folder))));
|
||||
|
||||
Reference in New Issue
Block a user