| Index: third_party/WebKit/LayoutTests/fast/loader/scroll-position-restored-on-back-at-load-event.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/loader/scroll-position-restored-on-back-at-load-event.html b/third_party/WebKit/LayoutTests/fast/loader/scroll-position-restored-on-back-at-load-event.html
|
| index 9a5dd277661371325782ea924c4c408b4f1979a3..f4e912d7bd690736a9e5ef8546148c4a8f3ba1b2 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/loader/scroll-position-restored-on-back-at-load-event.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/loader/scroll-position-restored-on-back-at-load-event.html
|
| @@ -21,16 +21,18 @@
|
| window.scrollTo(1000, 2000);
|
|
|
| window.name = "second/load";
|
| - setTimeout('window.location = "data:text/html,<script>history.back();</scr" + "ipt>"', 0);
|
| }
|
| }
|
| + function onLoad() {
|
| + setTimeout('window.location = "data:text/html,<script>history.back();</scr" + "ipt>"', 0);
|
| + }
|
|
|
| window.addEventListener('DOMContentLoaded', init, true);
|
| window.onunload = function() {} // prevent caching
|
|
|
| var jsTestIsAsync = true;
|
| </script>
|
| - <body>
|
| + <body onload="onLoad()">
|
| <div id="overflow" style='width: 9999px; height:9999px; float:left;'></div>
|
| <h1 id='console'/>
|
| </body>
|
|
|