aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom')
-rw-r--r--src/components/script/dom/webidls/Window.webidl1
-rw-r--r--src/components/script/dom/window.rs5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/components/script/dom/webidls/Window.webidl b/src/components/script/dom/webidls/Window.webidl
index 8571f9c9b64..9cd6ed1c045 100644
--- a/src/components/script/dom/webidls/Window.webidl
+++ b/src/components/script/dom/webidls/Window.webidl
@@ -30,6 +30,7 @@
// other browsing contexts
//[Replaceable] readonly attribute WindowProxy frames;
+ readonly attribute Window frames;
//[Replaceable] readonly attribute unsigned long length;
//[Unforgeable] readonly attribute WindowProxy top;
// attribute any opener;
diff --git a/src/components/script/dom/window.rs b/src/components/script/dom/window.rs
index 7d60c09a5fc..23b6c71e029 100644
--- a/src/components/script/dom/window.rs
+++ b/src/components/script/dom/window.rs
@@ -195,6 +195,11 @@ impl<'a> WindowMethods for JSRef<'a, Window> {
self.Window()
}
+ // http://www.whatwg.org/html/#dom-frames
+ fn Frames(&self) -> Temporary<Window> {
+ self.Window()
+ }
+
fn Parent(&self) -> Temporary<Window> {
//TODO - Once we support iframes correctly this needs to return the parent frame
self.Window()