Reorganize document creation so it occurs after we have a final URL.

This commit is contained in:
Josh Matthews 2015-02-02 20:16:42 +00:00
parent 94de93b3a3
commit 542e8d52d5
2 changed files with 48 additions and 49 deletions

View file

@ -210,8 +210,7 @@ impl<'a> DocumentHelpers<'a> for JSRef<'a, Document> {
}
fn url(self) -> Url {
let window = self.window().root();
window.page().get_url()
self.url.clone()
}
fn quirks_mode(self) -> QuirksMode {