summaryrefslogtreecommitdiffstats
path: root/docshell/test/browser/onload_message.html
diff options
context:
space:
mode:
Diffstat (limited to 'docshell/test/browser/onload_message.html')
-rw-r--r--docshell/test/browser/onload_message.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/docshell/test/browser/onload_message.html b/docshell/test/browser/onload_message.html
new file mode 100644
index 0000000000..6c69b710c7
--- /dev/null
+++ b/docshell/test/browser/onload_message.html
@@ -0,0 +1,15 @@
+<html>
+ <head>
+ <meta charset="utf-8">
+ <script>
+ if (opener) {
+ addEventListener("load", function() {
+ opener.postMessage("load", "*");
+ });
+ }
+ </script>
+ </head>
+ <body>
+ This file posts a message containing "load" to opener on load completion.
+ </body>
+</html>