summaryrefslogtreecommitdiffstats
path: root/dom/security/test/csp/file_windowwatcher_win_open.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/security/test/csp/file_windowwatcher_win_open.html')
-rw-r--r--dom/security/test/csp/file_windowwatcher_win_open.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/security/test/csp/file_windowwatcher_win_open.html b/dom/security/test/csp/file_windowwatcher_win_open.html
new file mode 100644
index 0000000000..0237e49377
--- /dev/null
+++ b/dom/security/test/csp/file_windowwatcher_win_open.html
@@ -0,0 +1,15 @@
+<!DOCTYPE HTML>
+<html>
+<body>
+Opened Window<br/>
+
+<script>
+
+window.onload = function() {
+ window.opener.parent.parent.postMessage({result: window.location.href}, "*");
+ window.close();
+}
+
+</script>
+</body>
+</html>