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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/touch/touch-user-gesture-cross-origin.html

Issue 1956493002: Remove user gestures on touches other than tap in cross-origin iframes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with trunk Created 4 years, 7 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: third_party/WebKit/LayoutTests/fast/events/touch/touch-user-gesture-cross-origin.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/touch/touch-user-gesture-cross-origin.html b/third_party/WebKit/LayoutTests/fast/events/touch/touch-user-gesture-cross-origin.html
new file mode 100644
index 0000000000000000000000000000000000000000..087fd27504fdb857bfc59085047eb6b17e597aa5
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/events/touch/touch-user-gesture-cross-origin.html
@@ -0,0 +1,22 @@
+<style>
+ /* iframe will pass its client co-ordinates to eventSender */
+ html, body {
+ margin: 0;
+ }
+ iframe {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 1000px;
+ }
+</style>
+<iframe src="resources/touch-user-gesture-frame.html"></iframe>
+
+<script>
+// Ensure the iframe is considered cross-origin
+testRunner.setAllowFileAccessFromFileURLs(false);
+testRunner.setAllowUniversalAccessFromFileURLs(false);
+testRunner.dumpChildFramesAsText();
+testRunner.waitUntilDone();
+</script>

Powered by Google App Engine
This is Rietveld 408576698