mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -258,6 +258,7 @@ impl XMLHttpRequest {
|
|||
let listener = NetworkListener {
|
||||
context: context,
|
||||
script_chan: script_chan,
|
||||
wrapper: None,
|
||||
};
|
||||
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