| iframe { width: 400px; height: 200px;} |
| testRunner.dumpChildFramesAsText(); |
| testRunner.waitUntilDone(); |
| document.getElementsByTagName('h4')[0].innerHTML = document.domain; |
| if (!testRunner.globalFlag) { |
| setTimeout(waitForFlag, 1); |
| testRunner.globalFlag = false; |
| setTimeout(waitForFlag, 1); |
| var subFrame = window.frames[0]; |
| subFrame.frames[0].location = "http://localhost:8000/security/frameNavigation/resources/navigation-changed-iframe.html"; |
| <body onload="loaded();"> |
| <p>This tests that documents can navigate the location of any of it's sub-frames regardless of domain.</p> |
| <iframe src="http://localhost:8000/security/frameNavigation/resources/iframe-with-inner-frame-on-foreign-domain.html"></iframe> |
| <button onclick="performTest()">Perform Test</button> |