| <p>Checks that when going back to a page that frames that were navigated, that the final URL of the frames is loaded directly, instead the initial URL. Four alerts should appear, in this order:</p> |
| <li>Initial URL loaded.</li> |
| <li>Final URL loaded.</li> |
| <li>Final URL loaded.</li> |
| <iframe a width="200" height="200" onunload="" src="resources/frame-initial-url.html"></iframe> |
| testRunner.dumpChildFramesAsText(); |
| testRunner.waitUntilDone(); |
| testRunner.dumpBackForwardList(); |
| // Disable page cache when not running under the DRT. |
| onunload = function() {}; |
| if (sessionStorage.didNav) { |
| delete sessionStorage.didNav; |
| // Navigate a timeout to make sure we generate a history entry that we can go back to. |
| setTimeout(function() {location.href = 'data:text/html,<script>alert("Going back.");history.back();</' + 'script>';}, 0); |
| sessionStorage.didNav = true; |