diff --git a/components/script/document_loader.rs b/components/script/document_loader.rs index a4ce36a2f57..611c469fa2d 100644 --- a/components/script/document_loader.rs +++ b/components/script/document_loader.rs @@ -120,7 +120,7 @@ impl DocumentLoader { } /// Initiate a new fetch that does not block the document load event. - pub fn fetch_async_background(&mut self, + pub fn fetch_async_background(&self, request: RequestInit, fetch_target: IpcSender) { self.resource_threads.sender().send(CoreResourceMsg::Fetch(request, fetch_target)).unwrap();