mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Auto merge of #24842 - servo:jdm-patch-34, r=nox
Make JS runnables for workers execute on correct event loop - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #24812
This commit is contained in:
commit
7a72f8a168
6 changed files with 12 additions and 271 deletions
|
@ -347,10 +347,14 @@ impl DedicatedWorkerGlobalScope {
|
|||
|
||||
let runtime = unsafe {
|
||||
if let Some(pipeline_id) = pipeline_id {
|
||||
new_child_runtime(
|
||||
parent,
|
||||
Some(NetworkingTaskSource(parent_sender.clone(), pipeline_id)),
|
||||
)
|
||||
let task_source = NetworkingTaskSource(
|
||||
Box::new(WorkerThreadWorkerChan {
|
||||
sender: own_sender.clone(),
|
||||
worker: worker.clone(),
|
||||
}),
|
||||
pipeline_id,
|
||||
);
|
||||
new_child_runtime(parent, Some(task_source))
|
||||
} else {
|
||||
new_child_runtime(parent, None)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue