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

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: Fix test 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..8b82c6596a01a8ec1c9556e47569748e7ac53933 100644
--- a/third_party/WebKit/LayoutTests/plugins/user-gesture.html
+++ b/third_party/WebKit/LayoutTests/plugins/user-gesture.html
@@ -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