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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/history/resources/navigation-with-user-gesture.html

Issue 2780953002: When historyEntryRequiresUserGesture is enabled, exempt docs that have been committed for 5 seconds (Closed)
Patch Set: Address ojan's comments Created 3 years, 8 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/http/tests/history/resources/navigation-with-user-gesture.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/history/resources/navigation-with-user-gesture.html b/third_party/WebKit/LayoutTests/http/tests/history/resources/navigation-with-user-gesture.html
new file mode 100644
index 0000000000000000000000000000000000000000..d75d058c71537f0c0d611bfe3ae096cd39c4b28b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/history/resources/navigation-with-user-gesture.html
@@ -0,0 +1,13 @@
+<body onload="setTimeout(loaded, 0)">
+<a id="a" href="../../resources/notify-done.html">Finish</a>
+<script>
+function loaded() {
+ if (window.eventSender) {
+ var a = document.getElementById("a");
+ eventSender.mouseMoveTo(a.offsetLeft + 2, a.offsetTop + 2);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ }
+}
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698