Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / resources / cached-page-2.html
blobe3c975d5f9883052f93d339b5771d62d770d1ac5
1 <script>
2 function goBack() {
3 window.opener.log("Back on page-2, timer is still firing.");
4 history.back();
7 function loadNext() {
8 if (window.opener.canExit3) {
9 goBack();
10 return;
13 window.opener.canExit2 = true;
15 // The crash only happens when we scroll here!
16 window.scrollBy(0, 100);
18 window.opener.log("page-2, about to navigate to page-3.")
19 // Location changes need to happen outside the onload handler to generate history entries.
20 setTimeout(function() {location.href = "cached-page-3.html";}, 0);
22 </script>
23 <body onpageshow="loadNext()">
24 <div style="height: 1200px; background-color: green"></div>
25 </body>