mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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
|
@ -243,8 +243,8 @@ impl HTMLLinkElement {
|
|||
let (action_sender, action_receiver) = ipc::channel().unwrap();
|
||||
let listener = NetworkListener {
|
||||
context: context,
|
||||
script_chan: document.window().networking_task_source(),
|
||||
wrapper: Some(document.window().get_runnable_wrapper()),
|
||||
task_source: document.window().networking_task_source(),
|
||||
wrapper: Some(document.window().get_runnable_wrapper())
|
||||
};
|
||||
ROUTER.add_route(action_receiver.to_opaque(), box move |message| {
|
||||
listener.notify_fetch(message.to().unwrap());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue