Index: LayoutTests/fast/loader/scroll-position-restoration-for-history-api.html |
diff --git a/LayoutTests/fast/loader/scroll-position-restoration-for-history-api.html b/LayoutTests/fast/loader/scroll-position-restoration-for-history-api.html |
index 14c1555f7290f69a4bacde72aa2ea94ac073b71b..82405880c172ad01937d93992ebcda963ba7016d 100644 |
--- a/LayoutTests/fast/loader/scroll-position-restoration-for-history-api.html |
+++ b/LayoutTests/fast/loader/scroll-position-restoration-for-history-api.html |
@@ -35,8 +35,6 @@ function handleNavigation() { |
for (var key in tests) { |
var test = tests[key]; |
var args = [{key: key}, '', key]; |
- if ('options' in test) |
- args.push(test.options); |
if (test.type == 'push') { |
history.pushState.apply(history, args); |
@@ -45,6 +43,9 @@ function handleNavigation() { |
history.replaceState.apply(history, args); |
} |
+ if ('options' in test) |
+ history.scrollRestoration = test.options.scrollRestoration; |
+ |
window.scrollBy(50, 100); |
} |