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

Unified Diff: chrome/test/data/constrained_files/block_alert.html

Issue 10282: Only block alert() requests from blocked popups; not all popups.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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/constrained_files/block_alert.html
===================================================================
--- chrome/test/data/constrained_files/block_alert.html (revision 0)
+++ chrome/test/data/constrained_files/block_alert.html (revision 0)
@@ -0,0 +1,17 @@
+<html>
+ <head>
+ <title>Block alert from blocked popup?</title>
+ <script>
+ if (location.search.indexOf("popup") != -1) {
Finnur 2008/11/11 07:30:03 The indentation here is weird. Same below...
+ document.write("This should still be inside the tab, but it is now in " +
Finnur 2008/11/11 07:30:03 Not conforming to 80 chars? :)
+ "a new window!");
+ alert("The popup has been \"popped out\" of the tab");
+ } else {
+ window.open("?popup");
+ }
+ </script>
+ </head>
+<body>
+<h1>Block alert from blocked popup?</h1>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698