aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/window.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/window.rs')
-rw-r--r--components/script/dom/window.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs
index d76cd6dc24d..c050579918e 100644
--- a/components/script/dom/window.rs
+++ b/components/script/dom/window.rs
@@ -1443,8 +1443,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