mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Make network listener runnable cancellable
This commit is contained in:
parent
b9af49f120
commit
315ffe7677
6 changed files with 21 additions and 5 deletions
|
@ -473,10 +473,12 @@ impl HTMLMediaElement {
|
|||
// 4.2
|
||||
let context = Arc::new(Mutex::new(HTMLMediaElementContext::new(self, url.clone())));
|
||||
let (action_sender, action_receiver) = ipc::channel().unwrap();
|
||||
let script_chan = window_from_node(self).networking_task_source();
|
||||
let window = window_from_node(self);
|
||||
let script_chan = window.networking_task_source();
|
||||
let listener = box NetworkListener {
|
||||
context: context,
|
||||
script_chan: script_chan,
|
||||
wrapper: Some(window.get_runnable_wrapper()),
|
||||
};
|
||||
|
||||
let response_target = AsyncResponseTarget {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue