LibWeb/HTML: Hook up a WorkerAgent for web workers

This commit is contained in:
Shannon Booth 2025-04-24 15:22:25 +12:00 committed by Andreas Kling
commit 041ff0c7ff
Notes: github-actions[bot] 2025-04-25 14:45:27 +00:00
10 changed files with 78 additions and 12 deletions

View file

@ -68,7 +68,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
Web::Platform::FontPlugin::install(*new WebView::FontPlugin(false));
Web::Bindings::initialize_main_thread_vm(Web::HTML::EventLoop::Type::Worker);
Web::Bindings::initialize_main_thread_vm(Web::Bindings::AgentType::DedicatedWorker);
TRY(initialize_resource_loader(Web::Bindings::main_thread_vm().heap(), request_server_socket));