mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
issue #10141 : Document::location set null for documents without a browsing context. r=Ms2ger
This commit is contained in:
parent
32e53b80e2
commit
6626c5cfd4
9 changed files with 6 additions and 27 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue