mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Avoid PendingAsyncLoad in fetch_async.
This commit is contained in:
parent
fc251384a7
commit
59689475af
4 changed files with 8 additions and 18 deletions
|
@ -1441,10 +1441,9 @@ impl Document {
|
|||
|
||||
pub fn fetch_async(&self, load: LoadType,
|
||||
request: RequestInit,
|
||||
fetch_target: IpcSender<FetchResponseMsg>,
|
||||
referrer_policy: Option<ReferrerPolicy>) {
|
||||
fetch_target: IpcSender<FetchResponseMsg>) {
|
||||
let mut loader = self.loader.borrow_mut();
|
||||
loader.fetch_async(load, request, fetch_target, self, referrer_policy);
|
||||
loader.fetch_async(load, request, fetch_target);
|
||||
}
|
||||
|
||||
pub fn finish_load(&self, load: LoadType) {
|
||||
|
|
|
@ -271,7 +271,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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue