mirror of
https://github.com/servo/servo.git
synced 2025-06-28 02:53:48 +01:00
Associate ResourceTask with UrlProvenance
This commit is contained in:
parent
0b1c8bf8d6
commit
8bfb5f8b6f
2 changed files with 8 additions and 12 deletions
|
@ -111,7 +111,7 @@ fn css_link_listener(to_parent: Sender<HtmlDiscoveryMessage>,
|
|||
loop {
|
||||
match from_parent.recv_opt() {
|
||||
Some(CSSTaskNewFile(provenance)) => {
|
||||
result_vec.push(spawn_css_parser(provenance, resource_task.clone()));
|
||||
result_vec.push(spawn_css_parser(provenance));
|
||||
}
|
||||
Some(CSSTaskExit) | None => {
|
||||
break;
|
||||
|
@ -357,7 +357,7 @@ pub fn parse_html(page: &Page,
|
|||
}) => {
|
||||
debug!("found CSS stylesheet: {:s}", href.get().value_ref());
|
||||
let url = parse_url(href.get().value_ref(), Some(url2.clone()));
|
||||
css_chan2.send(CSSTaskNewFile(UrlProvenance(url)));
|
||||
css_chan2.send(CSSTaskNewFile(UrlProvenance(url, resource_task.clone())));
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue