mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Revert "WebWorker: Prefer the default EventLoopManager over Qt's…"
…specialization"
This was causing WPT tests using Workers to time out.
This reverts commit a1cf5271c2
.
This commit is contained in:
parent
30d1eb4caf
commit
be38acfad9
Notes:
github-actions[bot]
2025-01-31 10:59:24 +00:00
Author: https://github.com/tcl3
Commit: be38acfad9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3415
1 changed files with 9 additions and 0 deletions
|
@ -24,6 +24,11 @@
|
|||
#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)
|
||||
|
@ -45,6 +50,10 @@ 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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue