mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
implement window.frames
This commit is contained in:
parent
db05417a25
commit
fd09df71a4
3 changed files with 6 additions and 5 deletions
|
@ -30,6 +30,7 @@
|
||||||
|
|
||||||
// other browsing contexts
|
// other browsing contexts
|
||||||
//[Replaceable] readonly attribute WindowProxy frames;
|
//[Replaceable] readonly attribute WindowProxy frames;
|
||||||
|
readonly attribute Window frames;
|
||||||
//[Replaceable] readonly attribute unsigned long length;
|
//[Replaceable] readonly attribute unsigned long length;
|
||||||
//[Unforgeable] readonly attribute WindowProxy top;
|
//[Unforgeable] readonly attribute WindowProxy top;
|
||||||
// attribute any opener;
|
// attribute any opener;
|
||||||
|
|
|
@ -195,6 +195,11 @@ impl<'a> WindowMethods for JSRef<'a, Window> {
|
||||||
self.Window()
|
self.Window()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// http://www.whatwg.org/html/#dom-frames
|
||||||
|
fn Frames(&self) -> Temporary<Window> {
|
||||||
|
self.Window()
|
||||||
|
}
|
||||||
|
|
||||||
fn Parent(&self) -> Temporary<Window> {
|
fn Parent(&self) -> Temporary<Window> {
|
||||||
//TODO - Once we support iframes correctly this needs to return the parent frame
|
//TODO - Once we support iframes correctly this needs to return the parent frame
|
||||||
self.Window()
|
self.Window()
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[window-aliases.html]
|
|
||||||
type: testharness
|
|
||||||
[frames should be the global object]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue