mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
script: Unsilence all main thread TaskQueue
errors (#34849)
No longer hide errors while queueing tasks on the main thread. This requires creating two types of `TaskSource`s: one for the main thread and one that can be sent to other threads. This makes queueing a bit more efficient on the main thread and more importantly, no longer hides task queue errors. Fixes #25688. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
d252a631d2
commit
fe8a22b72c
48 changed files with 628 additions and 571 deletions
|
@ -816,8 +816,7 @@ impl WindowMethods<crate::DomTypeHolder> for Window {
|
|||
self.global()
|
||||
.task_manager()
|
||||
.dom_manipulation_task_source()
|
||||
.queue(task)
|
||||
.expect("Queuing window_close_browsing_context task to work");
|
||||
.queue(task);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2335,8 +2334,7 @@ impl Window {
|
|||
CanGc::note());
|
||||
event.upcast::<Event>().fire(this.upcast::<EventTarget>(), CanGc::note());
|
||||
});
|
||||
let _ = self
|
||||
.task_manager()
|
||||
self.task_manager()
|
||||
.dom_manipulation_task_source()
|
||||
.queue(task);
|
||||
doc.set_url(load_data.url.clone());
|
||||
|
@ -2946,8 +2944,7 @@ impl Window {
|
|||
}
|
||||
});
|
||||
// TODO(#12718): Use the "posted message task source".
|
||||
let _ = self
|
||||
.task_manager()
|
||||
self.task_manager()
|
||||
.dom_manipulation_task_source()
|
||||
.queue(task);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue