WebWorker: Prefer the default EventLoopManager over Qt's specialization

This commit is contained in:
Lucas CHOLLET 2025-01-04 23:13:10 -05:00 committed by Andrew Kaster
commit a1cf5271c2
Notes: github-actions[bot] 2025-01-30 22:35:34 +00:00

View file

@ -24,11 +24,6 @@
#include <LibWebView/Utilities.h>
#include <WebWorker/ConnectionFromClient.h>
#if defined(HAVE_QT)
# include <LibWebView/EventLoop/EventLoopImplementationQt.h>
# include <QCoreApplication>
#endif
static ErrorOr<void> initialize_resource_loader(GC::Heap&, int request_server_socket);
ErrorOr<int> serenity_main(Main::Arguments arguments)
@ -50,10 +45,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
if (wait_for_debugger)
Core::Process::wait_for_debugger_and_break();
#if defined(HAVE_QT)
QCoreApplication app(arguments.argc, arguments.argv);
Core::EventLoopManager::install(*new WebView::EventLoopManagerQt);
#endif
Core::EventLoop event_loop;
WebView::platform_init();