Pass the Document's origin to its constructor.

CC #10963.
This commit is contained in:
Ms2ger 2016-11-28 18:27:23 +01:00
parent 01e336f691
commit ec5d08c887
9 changed files with 34 additions and 17 deletions

View file

@ -1720,6 +1720,8 @@ impl Node {
let loader = DocumentLoader::new(&*document.loader());
let document = Document::new(window, None,
Some(document.url()),
// https://github.com/whatwg/dom/issues/378
document.origin().alias(),
is_html_doc, None,
None, DocumentSource::NotFromParser, loader,
None, None);