mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 16:59:47 +00:00
UI/AppKit: Do not rely on the implicit URL constructors
This commit is contained in:
parent
097f7fe169
commit
0f495421f1
Notes:
github-actions[bot]
2025-03-04 21:26:12 +00:00
Author: https://github.com/shannonbooth
Commit: 0f495421f1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3668
Reviewed-by: https://github.com/trflynn89
2 changed files with 9 additions and 3 deletions
|
@ -7,6 +7,7 @@
|
|||
#include <AK/Enumerate.h>
|
||||
#include <LibGfx/Font/FontDatabase.h>
|
||||
#include <LibMain/Main.h>
|
||||
#include <LibURL/Parser.h>
|
||||
#include <LibWebView/Application.h>
|
||||
#include <LibWebView/ChromeProcess.h>
|
||||
#include <LibWebView/EventLoop/EventLoopImplementationMacOS.h>
|
||||
|
@ -49,7 +50,9 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
Application* application = [Application sharedApplication];
|
||||
|
||||
Core::EventLoopManager::install(*new WebView::EventLoopManagerMacOS);
|
||||
[application setupWebViewApplication:arguments newTabPageURL:Browser::default_new_tab_url];
|
||||
auto url = URL::Parser::basic_parse(Browser::default_new_tab_url);
|
||||
VERIFY(url.has_value());
|
||||
[application setupWebViewApplication:arguments newTabPageURL:url.release_value()];
|
||||
|
||||
WebView::platform_init();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue