diff options
author | Ms2ger <Ms2ger@gmail.com> | 2016-11-28 18:27:23 +0100 |
---|---|---|
committer | Ms2ger <Ms2ger@gmail.com> | 2016-12-23 11:15:46 +0100 |
commit | ec5d08c88730ac707368de03528744677a75231d (patch) | |
tree | 0548c655e1493f90a4f0c3d74587d6d70d42ae3a /components/script/dom/domparser.rs | |
parent | 01e336f6912292b5ca4c7349846a5d100974d99e (diff) | |
download | servo-ec5d08c88730ac707368de03528744677a75231d.tar.gz servo-ec5d08c88730ac707368de03528744677a75231d.zip |
Pass the Document's origin to its constructor.
CC #10963.
Diffstat (limited to 'components/script/dom/domparser.rs')
-rw-r--r-- | components/script/dom/domparser.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/domparser.rs b/components/script/dom/domparser.rs index 0ce2d50e09a..3f49712471a 100644 --- a/components/script/dom/domparser.rs +++ b/components/script/dom/domparser.rs @@ -61,6 +61,7 @@ impl DOMParserMethods for DOMParser { let document = Document::new(&self.window, None, Some(url.clone()), + doc.origin().alias(), IsHTMLDocument::HTMLDocument, Some(content_type), None, @@ -77,6 +78,7 @@ impl DOMParserMethods for DOMParser { let document = Document::new(&self.window, None, Some(url.clone()), + doc.origin().alias(), IsHTMLDocument::NonHTMLDocument, Some(content_type), None, |