From be38acfad99ae9862cf6acdb935749cf7ab24575 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Fri, 31 Jan 2025 08:44:16 +0000 Subject: [PATCH] =?UTF-8?q?Revert=20"WebWorker:=20Prefer=20the=20default?= =?UTF-8?q?=20EventLoopManager=20over=20Qt's=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …specialization" This was causing WPT tests using Workers to time out. This reverts commit a1cf5271c29f2ec0cfc1c53067b624e5ccbd15a0. --- Services/WebWorker/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Services/WebWorker/main.cpp b/Services/WebWorker/main.cpp index 602acddec10..b987d5a7db7 100644 --- a/Services/WebWorker/main.cpp +++ b/Services/WebWorker/main.cpp @@ -24,6 +24,11 @@ #include #include +#if defined(HAVE_QT) +# include +# include +#endif + static ErrorOr initialize_resource_loader(GC::Heap&, int request_server_socket); ErrorOr serenity_main(Main::Arguments arguments) @@ -45,6 +50,10 @@ ErrorOr 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();