diff options
author | benshu <benshu@benshu.de> | 2015-08-23 21:02:40 +0200 |
---|---|---|
committer | benshu <benshu@benshu.de> | 2015-08-28 00:52:41 +0200 |
commit | 1e6a2f08fc825c0179f44129485e6ef332ef8c33 (patch) | |
tree | 307811c06dc664ada5e711e050189009e12b834e /components/script/dom/xmlhttprequest.rs | |
parent | 71b277d5675556e61a82ae9dbf3105449c3a8275 (diff) | |
download | servo-1e6a2f08fc825c0179f44129485e6ef332ef8c33.tar.gz servo-1e6a2f08fc825c0179f44129485e6ef332ef8c33.zip |
Time distribution across script event categories.
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r-- | components/script/dom/xmlhttprequest.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index f624e79792e..1d7a097fd9e 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -27,6 +27,7 @@ use dom::xmlhttprequesteventtarget::XMLHttpRequestEventTarget; use dom::xmlhttprequesteventtarget::XMLHttpRequestEventTargetTypeId; use dom::xmlhttprequestupload::XMLHttpRequestUpload; use network_listener::{NetworkListener, PreInvoke}; +use script_task::ScriptTaskEventCategory::XhrEvent; use script_task::{ScriptChan, Runnable, ScriptPort, CommonScriptMsg}; use encoding::all::UTF_8; @@ -989,7 +990,7 @@ impl XMLHttpRequest { sleep_ms(duration_ms); match cancel_rx.try_recv() { Err(TryRecvError::Empty) => { - timeout_target.send(CommonScriptMsg::RunnableMsg(box XHRTimeout { + timeout_target.send(CommonScriptMsg::RunnableMsg(XhrEvent, box XHRTimeout { xhr: xhr, gen_id: gen_id, })).unwrap(); |