diff options
Diffstat (limited to 'dom/tests/mochitest/bugs/file_bug291653.html')
-rw-r--r-- | dom/tests/mochitest/bugs/file_bug291653.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dom/tests/mochitest/bugs/file_bug291653.html b/dom/tests/mochitest/bugs/file_bug291653.html new file mode 100644 index 000000000..4bfc8337e --- /dev/null +++ b/dom/tests/mochitest/bugs/file_bug291653.html @@ -0,0 +1,28 @@ +<html> + <head> + <script> + <!-- + function listener1() { + window.showModalDialog("data:text/html,<script>var maintest = opener.opener; opener.location = 'data:text/html,test'; maintest.end(); window.close();</script>"); + } + + function listener2() { + opener.secondListenerDidRun = true; + } + + window.addEventListener("foo", listener1); + window.addEventListener("foo", listener2); + + + function fireFoo() { + var e = document.createEvent("Events"); + e.initEvent("foo", true, true); + window.dispatchEvent(e); + } + //--> + </script> + </head> + <body onload="setTimeout(fireFoo, 0)"> + Test for bug 291653 + </body> +</html> |