| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 iframe { width: 400px; height: 200px;} | 4 iframe { width: 400px; height: 200px;} |
| 5 </style> | 5 </style> |
| 6 <script> | 6 <script> |
| 7 if (window.testRunner) { | 7 if (window.testRunner) { |
| 8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
| 9 testRunner.dumpChildFramesAsText(); | 9 testRunner.dumpChildFramesAsText(); |
| 10 testRunner.waitUntilDone(); | 10 testRunner.waitUntilDone(); |
| 11 } | 11 } |
| 12 | 12 |
| 13 function loaded() | 13 function loaded() |
| 14 { | 14 { |
| 15 document.getElementsByTagName('h4')[0].innerHTML = document.domain; | 15 document.getElementsByTagName('h4')[0].innerHTML = document.domain; |
| 16 | 16 performTest(); |
| 17 if (window.testRunner) { | |
| 18 function waitForFlag() { | |
| 19 if (!testRunner.globalFlag) { | |
| 20 setTimeout(waitForFlag, 1); | |
| 21 return; | |
| 22 } | |
| 23 | |
| 24 testRunner.globalFlag = false; | |
| 25 performTest(); | |
| 26 } | |
| 27 setTimeout(waitForFlag, 1); | |
| 28 } | |
| 29 } | 17 } |
| 30 | 18 |
| 31 function performTest() | 19 function performTest() |
| 32 { | 20 { |
| 33 var subFrame = window.frames[0]; | 21 var subFrame = window.frames[0]; |
| 34 subFrame.frames[0].location = "http://localhost:8000/security/frameN
avigation/resources/navigation-changed-iframe.html"; | 22 subFrame.frames[0].location = "http://localhost:8000/security/frameN
avigation/resources/navigation-changed-iframe.html"; |
| 35 } | 23 } |
| 36 </script> | 24 </script> |
| 37 </head> | 25 </head> |
| 38 <body onload="loaded();"> | 26 <body onload="loaded();"> |
| 39 <p>This tests that documents can navigate the location of any of it's sub-fr
ames regardless of domain.</p> | 27 <p>This tests that documents can navigate the location of any of it's sub-fr
ames regardless of domain.</p> |
| 40 <h4>DOMAIN</h4> | 28 <h4>DOMAIN</h4> |
| 41 <iframe src="http://localhost:8000/security/frameNavigation/resources/iframe
-with-inner-frame-on-foreign-domain.html"></iframe> | 29 <iframe src="http://localhost:8000/security/frameNavigation/resources/iframe
-with-inner-frame-on-foreign-domain.html"></iframe> |
| 42 <button onclick="performTest()">Perform Test</button> | 30 <button onclick="performTest()">Perform Test</button> |
| 43 </body> | 31 </body> |
| 44 </html> | 32 </html> |
| OLD | NEW |