mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make task queue API usable from non-main threads.
This commit is contained in:
parent
0e4865ea1a
commit
2aef518ce6
9 changed files with 42 additions and 21 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue