aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xmlhttprequest.rs
diff options
context:
space:
mode:
authorFausto Núñez Alberro <fausto.nunez@outlook.com>2017-04-26 01:07:31 +0200
committerFausto Núñez Alberro <fausto.nunez@mailbox.org>2017-07-16 21:44:33 +0200
commit6032940fb8723d36c6f5089593d0a57f6a7efc93 (patch)
treec35b06e617fe52d76b07fd99c06765c688e82637 /components/script/dom/xmlhttprequest.rs
parent104e0b473073340689b4bca5c128c61632d4e58d (diff)
downloadservo-6032940fb8723d36c6f5089593d0a57f6a7efc93.tar.gz
servo-6032940fb8723d36c6f5089593d0a57f6a7efc93.zip
Change RequestInit origin type to ImmutableOrigin
Diffstat (limited to 'components/script/dom/xmlhttprequest.rs')
-rw-r--r--components/script/dom/xmlhttprequest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs
index 76cb5810986..6ed2dda1851 100644
--- a/components/script/dom/xmlhttprequest.rs
+++ b/components/script/dom/xmlhttprequest.rs
@@ -594,7 +594,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest {
use_cors_preflight: has_handlers,
credentials_mode: credentials_mode,
use_url_credentials: use_url_credentials,
- origin: self.global().get_url(),
+ origin: self.global().origin().immutable().clone(),
referrer_url: self.referrer_url.clone(),
referrer_policy: self.referrer_policy.clone(),
pipeline_id: Some(self.global().pipeline_id()),