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/stylesheet_loader.rs | |
parent | 104e0b473073340689b4bca5c128c61632d4e58d (diff) | |
download | servo-6032940fb8723d36c6f5089593d0a57f6a7efc93.tar.gz servo-6032940fb8723d36c6f5089593d0a57f6a7efc93.zip |
Change RequestInit origin type to ImmutableOrigin
Diffstat (limited to 'components/script/stylesheet_loader.rs')
-rw-r--r-- | components/script/stylesheet_loader.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/stylesheet_loader.rs b/components/script/stylesheet_loader.rs index 562e16d05ef..2041a0d91de 100644 --- a/components/script/stylesheet_loader.rs +++ b/components/script/stylesheet_loader.rs @@ -261,7 +261,7 @@ impl<'a> StylesheetLoader<'a> { Some(CorsSettings::Anonymous) => CredentialsMode::CredentialsSameOrigin, _ => CredentialsMode::Include, }, - origin: document.url(), + origin: document.origin().immutable().clone(), pipeline_id: Some(self.elem.global().pipeline_id()), referrer_url: Some(document.url()), referrer_policy: referrer_policy, |