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

Unified Diff: chrome/test/data/popup_blocker/popup-dos.html

Issue 23600041: Add tests for recent popup blocker fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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: chrome/test/data/popup_blocker/popup-dos.html
diff --git a/chrome/test/data/popup_blocker/popup-dos.html b/chrome/test/data/popup_blocker/popup-dos.html
new file mode 100644
index 0000000000000000000000000000000000000000..81fb79ec8b662035b652f5c7aac70c612a1f8eb5
--- /dev/null
+++ b/chrome/test/data/popup_blocker/popup-dos.html
@@ -0,0 +1,15 @@
+<!DOCTYPE hyml>
+<html>
+<head>
+<title>Try to DOS the browser with popups</title>
+<script>
+function test() {
+ for (var i = 0; i<1000; ++i)
Bernhard Bauer 2013/09/12 13:39:22 Nit: space before and after less-than sign.
+ window.open("about:blank");
+}
+</script>
+</head>
+<body onload="test()">
+pop-up test page
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698