mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +01:00
Properly implement TaskSource for NetworkingTaskSource
This commit is contained in:
parent
d99d26cf1f
commit
72cb856e31
15 changed files with 89 additions and 69 deletions
|
@ -262,8 +262,8 @@ fn fetch_a_classic_script(script: &HTMLScriptElement,
|
|||
let (action_sender, action_receiver) = ipc::channel().unwrap();
|
||||
let listener = NetworkListener {
|
||||
context: context,
|
||||
script_chan: doc.window().networking_task_source(),
|
||||
wrapper: Some(doc.window().get_runnable_wrapper()),
|
||||
task_source: doc.window().networking_task_source(),
|
||||
wrapper: Some(doc.window().get_runnable_wrapper())
|
||||
};
|
||||
|
||||
ROUTER.add_route(action_receiver.to_opaque(), box move |message| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue