aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/eventsource.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2017-11-17 12:48:25 -0800
committerManish Goregaokar <manishsmail@gmail.com>2017-11-17 15:59:59 -0800
commit1dfb125cc95d37f4d46e5f852639274787684623 (patch)
treec917bd4db40648a3d5f5a61f80b1876896d6fb78 /components/script/dom/eventsource.rs
parentb5a205d92e3c78c71598795317d601f39152f314 (diff)
downloadservo-1dfb125cc95d37f4d46e5f852639274787684623.tar.gz
servo-1dfb125cc95d37f4d46e5f852639274787684623.zip
Fetch cancellation: Add cancel_chan to FetchContext
Diffstat (limited to 'components/script/dom/eventsource.rs')
-rw-r--r--components/script/dom/eventsource.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/eventsource.rs b/components/script/dom/eventsource.rs
index 1150c70742c..3f2b829a457 100644
--- a/components/script/dom/eventsource.rs
+++ b/components/script/dom/eventsource.rs
@@ -491,7 +491,7 @@ impl EventSource {
listener.notify_fetch(message.to().unwrap());
}));
global.core_resource_thread().send(
- CoreResourceMsg::Fetch(request, FetchChannels::ResponseMsg(action_sender))).unwrap();
+ CoreResourceMsg::Fetch(request, FetchChannels::ResponseMsg(action_sender, None))).unwrap();
// Step 13
Ok(ev)
}
@@ -555,6 +555,6 @@ impl EventSourceTimeoutCallback {
}
// Step 5.4
global.core_resource_thread().send(
- CoreResourceMsg::Fetch(request, FetchChannels::ResponseMsg(self.action_sender))).unwrap();
+ CoreResourceMsg::Fetch(request, FetchChannels::ResponseMsg(self.action_sender, None))).unwrap();
}
}