aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/storage.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2016-07-14 13:05:01 -0400
committerJosh Matthews <josh@joshmatthews.net>2016-07-14 13:27:41 -0400
commit2aef518ce672b8037913fb1a33980475e02259f8 (patch)
treee0d1a1286ce653115c661867ad286ece6a138b43 /components/script/dom/storage.rs
parent0e4865ea1ada7294d89581704f047b521f985c69 (diff)
downloadservo-2aef518ce672b8037913fb1a33980475e02259f8.tar.gz
servo-2aef518ce672b8037913fb1a33980475e02259f8.zip
Make task queue API usable from non-main threads.
Diffstat (limited to 'components/script/dom/storage.rs')
-rw-r--r--components/script/dom/storage.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/storage.rs b/components/script/dom/storage.rs
index 11dfc3ab5d2..d6d1e1968f8 100644
--- a/components/script/dom/storage.rs
+++ b/components/script/dom/storage.rs
@@ -161,7 +161,8 @@ impl Storage {
let window = global_ref.as_window();
let task_source = window.dom_manipulation_task_source();
let trusted_storage = Trusted::new(self);
- task_source.queue(box StorageEventRunnable::new(trusted_storage, key, old_value, new_value), window).unwrap();
+ task_source.queue(box StorageEventRunnable::new(trusted_storage, key, old_value, new_value),
+ global_ref).unwrap();
}
}