Skip to content

Commit

Permalink
implement window.frames
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnirp committed Aug 29, 2014
1 parent db05417 commit fd09df7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/components/script/dom/webidls/Window.webidl
Expand Up @@ -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;
Expand Down
5 changes: 5 additions & 0 deletions src/components/script/dom/window.rs
Expand Up @@ -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()
Expand Down

This file was deleted.

0 comments on commit fd09df7

Please sign in to comment.