aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/parse/html.rs
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2014-11-28 10:51:44 -0700
committerbors-servo <metajack+bors@gmail.com>2014-11-28 10:51:44 -0700
commit1ac79c64da4b14f83fed6ca123a81417b9c0fc87 (patch)
tree70f3e285e35f778e1ad27ac03698bea0d3c600fd /components/script/parse/html.rs
parent2d904f70801bdd709ac845520dbe1035dd6fd5db (diff)
parentf5e9ae17cfc9e5fc9b04b765f613b78085404823 (diff)
downloadservo-1ac79c64da4b14f83fed6ca123a81417b9c0fc87.tar.gz
servo-1ac79c64da4b14f83fed6ca123a81417b9c0fc87.zip
auto merge of #4000 : t29/servo/mime-sniffing, r=jdm
Issue: #3144 This PR addresses the second step of the ticket. i.e. move from a 1:1 sniffer:request task model to a shared sniffer task.
Diffstat (limited to 'components/script/parse/html.rs')
-rw-r--r--components/script/parse/html.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs
index d647df64d13..7e199fad1d3 100644
--- a/components/script/parse/html.rs
+++ b/components/script/parse/html.rs
@@ -200,13 +200,13 @@ pub fn parse_html(page: &Page,
InputUrl(ref url) => {
// Wait for the LoadResponse so that the parser knows the final URL.
let (input_chan, input_port) = channel();
- let mut load_data = LoadData::new(url.clone());
+ let mut load_data = LoadData::new(url.clone(), input_chan);
msg_load_data.map(|m| {
load_data.headers = m.headers;
load_data.method = m.method;
load_data.data = m.data;
});
- resource_task.send(Load(load_data, input_chan));
+ resource_task.send(Load(load_data));
let load_response = input_port.recv();