Index: LayoutTests/http/tests/navigation/resources/frame-with-anchor-cross-origin.html |
diff --git a/LayoutTests/http/tests/navigation/resources/frame-with-anchor-cross-origin.html b/LayoutTests/http/tests/navigation/resources/frame-with-anchor-cross-origin.html |
index 6dfe45fb12247d701bf2427435ea1c034e44899f..e1c9fe0e88ae8219df4cb96b29d95e286e30113e 100644 |
--- a/LayoutTests/http/tests/navigation/resources/frame-with-anchor-cross-origin.html |
+++ b/LayoutTests/http/tests/navigation/resources/frame-with-anchor-cross-origin.html |
@@ -8,8 +8,8 @@ |
description('This prevents a cross-origin information leak sometimes know as framesniffing.'); |
// Check scroll position in a timeout to make sure that the anchor has not been scrolled to. |
setTimeout(function() { |
- shouldBeTrue('document.body.scrollTop == 0'); |
- shouldBeTrue('document.body.scrollLeft == 0'); |
+ shouldBeTrue('document.documentElement.scrollTop == 0'); |
+ shouldBeTrue('document.documentElement.scrollLeft == 0'); |
finishJSTest(); |
}, 0); |
} |