| OLD | NEW |
| (Empty) | |
| 1 <body> |
| 2 <script> |
| 3 if (window.testRunner) { |
| 4 testRunner.dumpBackForwardList(); |
| 5 testRunner.dumpAsText(); |
| 6 testRunner.waitUntilDone(); |
| 7 } |
| 8 |
| 9 function childLoaded() { |
| 10 if (window.sessionStorage.getItem("dynamic-iframe") != null) { |
| 11 setTimeout(function() { |
| 12 location.assign("resources/go-back.html"); |
| 13 }, 0); |
| 14 } else { |
| 15 setTimeout(function() { |
| 16 if (window.testRunner) |
| 17 testRunner.notifyDone(); |
| 18 }, 0); |
| 19 } |
| 20 } |
| 21 |
| 22 var i = document.createElement("iframe"); |
| 23 i.src = "javascript:false"; |
| 24 document.body.appendChild(i); |
| 25 |
| 26 if (window.sessionStorage.getItem("dynamic-iframe") == null) { |
| 27 window.sessionStorage.setItem("dynamic-iframe", true); |
| 28 i.src = "resources/back-to-dynamic-iframe-iframe.html#FAIL"; |
| 29 } else { |
| 30 window.sessionStorage.removeItem("dynamic-iframe"); |
| 31 i.src = "resources/back-to-dynamic-iframe-iframe.html#PASS"; |
| 32 } |
| 33 </script> |
| 34 </body> |
| OLD | NEW |