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

Unified Diff: LayoutTests/http/tests/navigation/resources/frame-with-anchor-cross-origin.html

Issue 26472003: Fix improper scrollTop/Left usage in LayoutTests/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@issue_304768
Patch Set: Fix improper scrollTop/Left usage in LayoutTests/ Created 7 years, 2 months 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698