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

Unified Diff: LayoutTests/fast/events/popup-blocked-from-untrusted-click-event-on-anchor.html

Issue 894913002: Prevent default actions for JS-generated mouse events other than click (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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: LayoutTests/fast/events/popup-blocked-from-untrusted-click-event-on-anchor.html
diff --git a/LayoutTests/fast/events/popup-blocked-from-untrusted-click-event-on-anchor.html b/LayoutTests/fast/events/popup-blocked-from-untrusted-click-event-on-anchor.html
deleted file mode 100644
index 95c46d162fe978098ccdbd0da6a4539f1025b67e..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/events/popup-blocked-from-untrusted-click-event-on-anchor.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<html>
- <head>
- <script src="../../resources/js-test.js"></script>
- </head>
- <body>
- <a id=test href="javascript:popup()">test</a>
- <div id="console"></div>
- <script>
- var win;
- function popup() {
- win = window.open('about:blank','blank','height=200,width=200');
- shouldBeUndefined("win");
- }
-
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.setCanOpenWindows();
- testRunner.setPopupBlockingEnabled(true);
- testRunner.setCloseRemainingWindowsWhenComplete(true);
- testRunner.waitUntilDone();
- }
-
- clickEvent = document.createEvent("MouseEvents");
- clickEvent.initEvent("click", true, true, document.defaultView, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
- document.getElementById("test").dispatchEvent(clickEvent);
-
- if (window.testRunner)
- testRunner.notifyDone();
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698