mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue