issue #10141 : Document::location set null for documents without a browsing context. r=Ms2ger

This commit is contained in:
shubham_jain 2016-03-29 11:33:25 +05:30
parent 32e53b80e2
commit 6626c5cfd4
9 changed files with 6 additions and 27 deletions

View file

@ -441,7 +441,7 @@ impl WindowMethods for Window {
// https://html.spec.whatwg.org/multipage/#dom-location
fn Location(&self) -> Root<Location> {
self.Document().Location()
self.Document().GetLocation().unwrap()
}
// https://html.spec.whatwg.org/multipage/#dom-sessionstorage