3 if (window
.testRunner
) {
4 testRunner
.dumpAsText();
5 testRunner
.waitUntilDone();
12 windowObject
= subframe
;
13 subframe
.location
.href
= 'resources/blank.html';
16 function checkWindowAccess()
18 if (windowObject
&& windowObject
.document
&& /blank.html/.test(windowObject
.location
)) {
19 document
.getElementById('result').innerHTML
= 'SUCCESS';
20 if (window
.testRunner
)
21 testRunner
.notifyDone();
25 <body onload='getWindow()'
>
26 <p>Test for
<a href=
"http://bugs.webkit.org/show_bug.cgi?id=27394">bug
27394</a>:
27 properties on a window object should be accessible after the frame of the window object has navigated to another page.
</p>
28 <div id='result'
>FAILED
</div>
29 <iframe name='subframe' onload='checkWindowAccess()'
></iframe>