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

Unified Diff: third_party/WebKit/LayoutTests/plugins/user-gesture.html

Issue 2070053004: Enable do not allow default action for untrusted events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 4 years, 6 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/plugins/user-gesture.html
diff --git a/third_party/WebKit/LayoutTests/plugins/user-gesture.html b/third_party/WebKit/LayoutTests/plugins/user-gesture.html
index db6d804c748dd323ea8d364826997aca95cb6617..cabf5f124070c44e5ff1987e75ffc542fa742175 100644
--- a/third_party/WebKit/LayoutTests/plugins/user-gesture.html
+++ b/third_party/WebKit/LayoutTests/plugins/user-gesture.html
@@ -4,8 +4,8 @@
<embed id="plugin" type="application/x-webkit-test-webplugin" accepts-touch="raw" print-user-gesture-status="true" width="100" height="100"></embed>
<p>
Test that the user gesture indicator is correctly set for events forwarded
- through the WebPluginContainer. The tests succeeds if the first
- mousedown/mouseup event pair is a user gesture, and the second is not.
+ through the WebPluginContainer. The tests succeeds if the mousedown/mouseup
+ event pair is a user gesture.
</p>
<script>
if (!window.testRunner || !window.eventSender) {
@@ -21,16 +21,6 @@
// Stray mouse up event, should get its own gesture.
eventSender.mouseUp();
-
- // Fake mouse events
- var plugin = document.getElementById("plugin");
- var evt = document.createEvent("MouseEvent");
- evt.initMouseEvent("mousedown", true, true, window, 1, 20, 20, 20, 20, false, false, false, false, 0, null);
- plugin.dispatchEvent(evt);
-
- evt = document.createEvent("MouseEvent");
- evt.initMouseEvent("mouseup", true, true, window, 1, 20, 20, 20, 20, false, false, false, false, 0, null);
- plugin.dispatchEvent(evt);
}
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698