Auto merge of #13571 - servo:simplify-fetching, r=nox

Simplify fetching code.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13571)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-10-04 08:05:44 -05:00 committed by GitHub
commit b80769dbf5
5 changed files with 48 additions and 114 deletions

View file

@ -269,7 +269,7 @@ fn fetch_a_classic_script(script: &HTMLScriptElement,
ROUTER.add_route(action_receiver.to_opaque(), box move |message| {
listener.notify_fetch(message.to().unwrap());
});
doc.fetch_async(LoadType::Script(url), request, action_sender, None);
doc.fetch_async(LoadType::Script(url), request, action_sender);
}
impl HTMLScriptElement {