mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
properly shutdown dedicated workers when the owning scope shuts-down
This commit is contained in:
parent
5174739244
commit
6f34b52e39
3 changed files with 13 additions and 3 deletions
|
@ -1441,8 +1441,8 @@ impl Window {
|
|||
}
|
||||
|
||||
pub fn clear_js_runtime(&self) {
|
||||
// Remove the infra for managing messageports and broadcast channels.
|
||||
self.upcast::<GlobalScope>().remove_web_messaging_infra();
|
||||
self.upcast::<GlobalScope>()
|
||||
.remove_web_messaging_and_dedicated_workers_infra();
|
||||
|
||||
// Clean up any active promises
|
||||
// https://github.com/servo/servo/issues/15318
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue