| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script> | |
| 4 if (window.testRunner) { | |
| 5 testRunner.dumpAsText(); | |
| 6 testRunner.waitUntilDone(); | |
| 7 testRunner.setCanOpenWindows(); | |
| 8 } | |
| 9 | |
| 10 function log(msg) { | |
| 11 var div = document.createElement("div"); | |
| 12 div.appendChild(document.createTextNode(msg)); | |
| 13 document.getElementById("console").appendChild(div); | |
| 14 } | |
| 15 | |
| 16 window.addEventListener("message", function(e) { | |
| 17 if (e.data == "ready") { | |
| 18 win.location = "resources/pass.html"; | |
| 19 } else if (e.data == "pass") { | |
| 20 win.document.body.innerHTML = "Frame navigated back on-domain"; | |
| 21 win.close(); | |
| 22 log("PASS"); | |
| 23 if (window.testRunner) | |
| 24 testRunner.notifyDone(); | |
| 25 } | |
| 26 }, false); | |
| 27 | |
| 28 window.onload = function() { | |
| 29 win = window.open("http://localhost:8000/security/frameNavigation/resources/
ready.html", "targetFrame"); | |
| 30 } | |
| 31 | |
| 32 </script> | |
| 33 </head> | |
| 34 <body> | |
| 35 <div id="console"></div> | |
| 36 </body> | |
| 37 </html> | |
| 38 | |
| OLD | NEW |