mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb/HTML: Hook up a WorkerAgent for web workers
This commit is contained in:
committed by
Andreas Kling
parent
5290ebfe19
commit
041ff0c7ff
Notes:
github-actions[bot]
2025-04-25 14:45:27 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/041ff0c7ffb Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4453
@@ -32,7 +32,15 @@ struct WebEngineCustomJobCallbackData final : public JS::JobCallback::CustomData
|
||||
|
||||
HTML::Script* active_script();
|
||||
|
||||
void initialize_main_thread_vm(HTML::EventLoop::Type);
|
||||
enum class AgentType : u8 {
|
||||
SimilarOriginWindow,
|
||||
DedicatedWorker,
|
||||
SharedWorker,
|
||||
ServiceWorker,
|
||||
Worklet,
|
||||
};
|
||||
|
||||
void initialize_main_thread_vm(AgentType);
|
||||
JS::VM& main_thread_vm();
|
||||
|
||||
void queue_mutation_observer_microtask(DOM::Document const&);
|
||||
|
||||
Reference in New Issue
Block a user