diff options
Diffstat (limited to 'chrome/test/data/constrained_files/block_alert.html')
-rw-r--r-- | chrome/test/data/constrained_files/block_alert.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chrome/test/data/constrained_files/block_alert.html b/chrome/test/data/constrained_files/block_alert.html new file mode 100644 index 0000000..063d972 --- /dev/null +++ b/chrome/test/data/constrained_files/block_alert.html @@ -0,0 +1,17 @@ +<html>
+ <head>
+ <title>Block alert from blocked popup?</title>
+ <script>
+ if (location.search.indexOf("popup") != -1) {
+ document.write("This should still be inside the tab, but it is now " +
+ "in 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>
|