4 function accessAttributes(s
) {
12 value
= s
.availHeight
;
17 if (window
.testRunner
)
18 testRunner
.dumpAsText();
20 var f
= document
.getElementById('theframe');
21 var s
= f
.contentWindow
.screen
;
24 // Now remove and check that we don't crash.
25 f
.parentNode
.removeChild(f
);
30 <iframe id=
"theframe" src=
"resources/red.html"></iframe>
31 <body onload=
"runTests()">
33 This tests that accessing screen attributes doesn't crash even if containing frame is removed from the parent.