Index: third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-user-gesture-in-parent.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-user-gesture-in-parent.html |
similarity index 62% |
copy from third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html |
copy to third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-user-gesture-in-parent.html |
index 723733f1314c85e3a9378e5976d106a7bbe53c27..c661318f3f28d53bb46cb3040828871de6d98e09 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-without-user-gesture.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/security/frameNavigation/xss-DENIED-top-navigation-user-gesture-in-parent.html |
@@ -1,14 +1,19 @@ |
<html> |
-<head> |
+<body> |
<script> |
if (window.testRunner) { |
testRunner.dumpAsText(); |
testRunner.dumpChildFramesAsText(); |
testRunner.setDumpConsoleMessages(false); |
} |
+ |
+// Ensure a user gesture happened in the main frame, but not in the iframe. |
+if (window.eventSender) { |
+ eventSender.mouseMoveTo(0, 0); |
+ eventSender.mouseDown(0, 0); |
+ eventSender.mouseUp(0, 0); |
+} |
</script> |
-</head> |
-<body> |
<iframe src="http://localhost:8000/security/frameNavigation/resources/iframe-that-performs-top-navigation-without-user-gesture.html"></iframe> |
</body> |
</html> |