Support window.parent in the one-window case.

This commit is contained in:
James Graham 2014-07-29 15:38:51 +01:00
parent 1f04ce807d
commit 881e4fcd6e
2 changed files with 6 additions and 0 deletions

View file

@ -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);