aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domparser.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-12-29 01:38:19 -0800
committerGitHub <noreply@github.com>2016-12-29 01:38:19 -0800
commit885d152e92b20bdaeb0d0ad20affd269fc3b55d3 (patch)
treed79a81148534ca9b0a4a38551bee4779774f22b2 /components/script/dom/domparser.rs
parentc7991d596f7453d09c2b2a98eecce72f182a4e24 (diff)
parentd49e34c1b1e6e3759633c9315a3e02dde091546c (diff)
downloadservo-885d152e92b20bdaeb0d0ad20affd269fc3b55d3.tar.gz
servo-885d152e92b20bdaeb0d0ad20affd269fc3b55d3.zip
Auto merge of #14647 - servo:current-global, r=jdm
Support the 'current' global object. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14647) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/domparser.rs')
-rw-r--r--components/script/dom/domparser.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/script/dom/domparser.rs b/components/script/dom/domparser.rs
index 57dd1450293..b379c82d23c 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,