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
parent 5290ebfe19
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

@ -191,7 +191,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
Web::Platform::FontPlugin::install(*new WebView::FontPlugin(is_layout_test_mode, &font_provider));
Web::Bindings::initialize_main_thread_vm(Web::HTML::EventLoop::Type::Window);
Web::Bindings::initialize_main_thread_vm(Web::Bindings::AgentType::SimilarOriginWindow);
if (collect_garbage_on_every_allocation)
Web::Bindings::main_thread_vm().heap().set_should_collect_on_every_allocation(true);