diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-10 19:21:45 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-10 19:21:45 +0000 |
commit | 297117029c8cd44b92d8529bc9b29eeb8e5fffb9 (patch) | |
tree | 250472d7bedab6fb40d74a417cbc200f503a8c72 /chrome/test/data/constrained_files | |
parent | 82a1c3cd33415ba89df563d73c34137507294611 (diff) | |
download | chromium_src-297117029c8cd44b92d8529bc9b29eeb8e5fffb9.zip chromium_src-297117029c8cd44b92d8529bc9b29eeb8e5fffb9.tar.gz chromium_src-297117029c8cd44b92d8529bc9b29eeb8e5fffb9.tar.bz2 |
Make sure that we deny javascript window.close() requests when we are showing
a blocked popup notification.
Review URL: http://codereview.chromium.org/9709
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5115 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/data/constrained_files')
-rw-r--r-- | chrome/test/data/constrained_files/openclose_main.html | 9 | ||||
-rw-r--r-- | chrome/test/data/constrained_files/openclose_one.html | 14 | ||||
-rw-r--r-- | chrome/test/data/constrained_files/openclose_two.html | 9 |
3 files changed, 32 insertions, 0 deletions
diff --git a/chrome/test/data/constrained_files/openclose_main.html b/chrome/test/data/constrained_files/openclose_main.html new file mode 100644 index 0000000..ab29af8 --- /dev/null +++ b/chrome/test/data/constrained_files/openclose_main.html @@ -0,0 +1,9 @@ +<html>
+<head>
+<title>Main</title>
+</head>
+
+<body onClick="window.open('openclose_one.html', 'mywindow', 'status=0,toolbar=0');">
+<h1>Click me</h1>
+</body>
+</html>
diff --git a/chrome/test/data/constrained_files/openclose_one.html b/chrome/test/data/constrained_files/openclose_one.html new file mode 100644 index 0000000..1bb8a80 --- /dev/null +++ b/chrome/test/data/constrained_files/openclose_one.html @@ -0,0 +1,14 @@ +<html>
+ <head>
+ <title>One</title>
+ <script>
+ function createDifferentWindow() {
+ window.open('openclose_two.html', 'window2', 'status=0,toolbar=0');
+ window.close();
+ }
+ </script>
+ </head>
+
+<body onLoad="createDifferentWindow();">
+</body>
+</html>
diff --git a/chrome/test/data/constrained_files/openclose_two.html b/chrome/test/data/constrained_files/openclose_two.html new file mode 100644 index 0000000..6c85e18 --- /dev/null +++ b/chrome/test/data/constrained_files/openclose_two.html @@ -0,0 +1,9 @@ +<html>
+ <head>
+ <title>Destination</title>
+ </head>
+
+<body>
+ <h1>It's here!</h1>
+</body>
+</html>
|