mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Allow windows to share browsing contexts.
This commit is contained in:
parent
fc67878edf
commit
403499a9d5
11 changed files with 168 additions and 108 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue