diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-01-13 18:17:01 -0600 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-01-28 21:57:03 -0600 |
commit | 403499a9d5aa3749571ef960f9ab909855570a6f (patch) | |
tree | 60f7ed30359a9ba4adb305f17aed1bcc3e511ac9 /components/script/dom/node.rs | |
parent | fc67878edf93125eb32b245dcaf177c61c47a033 (diff) | |
download | servo-403499a9d5aa3749571ef960f9ab909855570a6f.tar.gz servo-403499a9d5aa3749571ef960f9ab909855570a6f.zip |
Allow windows to share browsing contexts.
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 6931fca1822..37b5764c174 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -29,7 +29,7 @@ use dom::bindings::str::{DOMString, USVString}; use dom::bindings::xmlname::namespace_from_domstring; use dom::characterdata::{CharacterData, LayoutCharacterDataHelpers}; use dom::cssstylesheet::CSSStyleSheet; -use dom::document::{Document, DocumentSource, IsHTMLDocument}; +use dom::document::{Document, DocumentSource, HasBrowsingContext, IsHTMLDocument}; use dom::documentfragment::DocumentFragment; use dom::documenttype::DocumentType; use dom::element::{Element, ElementCreator}; @@ -1726,7 +1726,7 @@ impl Node { }; let window = document.window(); let loader = DocumentLoader::new(&*document.loader()); - let document = Document::new(window, None, + let document = Document::new(window, HasBrowsingContext::No, Some(document.url()), // https://github.com/whatwg/dom/issues/378 document.origin().alias(), |