mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb: Allow workers to be spawned by other workers
This commit provides IPC endpoint to WebWorker processes that allows new WebWorker processes to be requested (just like what WebContent has). This is implemented by proxying the request_worker_agent call from WebWorker through WebContent to LibWebView. This allows the WPT test... http://wpt.live/referrer-policy/gen/worker-classic.http-rp/unsafe-url/worker-classic.http.html ...to pass, and the same is likely true for similar tests.
This commit is contained in:
committed by
Shannon Booth
parent
ffdc333e95
commit
6a109c5c57
Notes:
github-actions[bot]
2026-02-06 10:49:50 +00:00
Author: https://github.com/CountBleck Commit: https://github.com/LadybirdBrowser/ladybird/commit/6a109c5c57b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7507 Reviewed-by: https://github.com/shannonbooth ✅
@@ -104,10 +104,7 @@ void run_a_worker(Variant<GC::Ref<Worker>, GC::Ref<SharedWorker>> worker, URL::U
|
||||
// 1. Let is shared be true if worker is a SharedWorker object, and false otherwise.
|
||||
Bindings::AgentType agent_type = worker.has<GC::Ref<SharedWorker>>() ? Bindings::AgentType::SharedWorker : Bindings::AgentType::DedicatedWorker;
|
||||
|
||||
// 2. Let owner be the relevant owner to add given outside settings.
|
||||
// FIXME: Support WorkerGlobalScope options
|
||||
if (!is<HTML::WindowEnvironmentSettingsObject>(outside_settings))
|
||||
TODO();
|
||||
// FIXME: 2. Let owner be the relevant owner to add given outside settings.
|
||||
|
||||
// 3. Let unsafeWorkerCreationTime be the unsafe shared current time.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user