mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Support window.parent in the one-window case.
This commit is contained in:
parent
1f04ce807d
commit
881e4fcd6e
2 changed files with 6 additions and 0 deletions
|
@ -191,6 +191,11 @@ impl<'a> WindowMethods for JSRef<'a, Window> {
|
|||
self.Window()
|
||||
}
|
||||
|
||||
fn Parent(&self) -> Temporary<Window> {
|
||||
//TODO - Once we support iframes correctly this needs to return the parent frame
|
||||
self.Window()
|
||||
}
|
||||
|
||||
fn Performance(&self) -> Temporary<Performance> {
|
||||
if self.performance.get().is_none() {
|
||||
let performance = Performance::new(self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue