diff options
author | Fausto Núñez Alberro <fausto.nunez@outlook.com> | 2017-04-26 01:07:31 +0200 |
---|---|---|
committer | Fausto Núñez Alberro <fausto.nunez@mailbox.org> | 2017-07-16 21:44:33 +0200 |
commit | 6032940fb8723d36c6f5089593d0a57f6a7efc93 (patch) | |
tree | c35b06e617fe52d76b07fd99c06765c688e82637 /components/script/layout_image.rs | |
parent | 104e0b473073340689b4bca5c128c61632d4e58d (diff) | |
download | servo-6032940fb8723d36c6f5089593d0a57f6a7efc93.tar.gz servo-6032940fb8723d36c6f5089593d0a57f6a7efc93.zip |
Change RequestInit origin type to ImmutableOrigin
Diffstat (limited to 'components/script/layout_image.rs')
-rw-r--r-- | components/script/layout_image.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/layout_image.rs b/components/script/layout_image.rs index 1d573c9b94d..4af9bab013b 100644 --- a/components/script/layout_image.rs +++ b/components/script/layout_image.rs @@ -70,7 +70,7 @@ pub fn fetch_image_for_layout(url: ServoUrl, let request = FetchRequestInit { url: url, - origin: document.url().clone(), + origin: document.origin().immutable().clone(), type_: RequestType::Image, pipeline_id: Some(document.global().pipeline_id()), .. FetchRequestInit::default() |