5 <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>
8 <li>Initial URL loaded.</li>
9 <li>Final URL loaded.</li>
11 <li>Final URL loaded.</li>
14 <iframe a width="200" height="200" onunload="" src="resources/frame-initial-url.html"></iframe>
17 if (window.layoutTestController) {
18 layoutTestController.dumpAsText();
19 layoutTestController.dumpChildFramesAsText();
20 layoutTestController.waitUntilDone();
21 layoutTestController.dumpBackForwardList();
23 // Disable page cache when not running under the DRT.
24 onunload = function() {};
29 if (sessionStorage.didNav) {
30 delete sessionStorage.didNav;
31 if (window.layoutTestController)
32 layoutTestController.notifyDone();
34 // Navigate a timeout to make sure we generate a history entry that we can go back to.
35 setTimeout(function() {location.href = 'data:text/html,<script>alert("Going back.");history.back();</' + 'script>';}, 0);
36 sessionStorage.didNav = true;