Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: third_party/WebKit/LayoutTests/fast/loader/scroll-position-restored-on-back-at-load-event.html

Issue 2489523002: Fix scroll-position-restored-on-back-at-load-event.html (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698