Merge pull request #3186 from wenderen/Window.frames

implement window.frames; r=Manishearth
This commit is contained in:
Ms2ger 2014-08-30 09:12:17 +02:00
commit 8af758f591
3 changed files with 6 additions and 5 deletions

View file

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

View file

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

View file

@ -1,5 +0,0 @@
[window-aliases.html]
type: testharness
[frames should be the global object]
expected: FAIL