diff --git a/src/components/script/dom/webidls/Window.webidl b/src/components/script/dom/webidls/Window.webidl index d96083a8aa8..aea9fc784e1 100644 --- a/src/components/script/dom/webidls/Window.webidl +++ b/src/components/script/dom/webidls/Window.webidl @@ -34,6 +34,7 @@ //[Unforgeable] readonly attribute WindowProxy top; // attribute any opener; //readonly attribute WindowProxy parent; + readonly attribute Window parent; //readonly attribute Element? frameElement; //WindowProxy open(optional DOMString url = "about:blank", optional DOMString target = "_blank", optional DOMString features = "", optional boolean replace = false); //getter WindowProxy (unsigned long index); diff --git a/src/components/script/dom/window.rs b/src/components/script/dom/window.rs index e620a8c40b0..070c2373792 100644 --- a/src/components/script/dom/window.rs +++ b/src/components/script/dom/window.rs @@ -191,6 +191,11 @@ impl<'a> WindowMethods for JSRef<'a, Window> { self.Window() } + fn Parent(&self) -> Temporary { + //TODO - Once we support iframes correctly this needs to return the parent frame + self.Window() + } + fn Performance(&self) -> Temporary { if self.performance.get().is_none() { let performance = Performance::new(self);