Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Window / window-access-after-navigation.html
blob3f64d55ba91768dc93b8960b110383e898a7d865
1 <html>
2 <script>
3 if (window.testRunner) {
4 testRunner.dumpAsText();
5 testRunner.waitUntilDone();
8 var windowObject;
10 function getWindow()
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();
24 </script>
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>
30 </body>
31 </html>