dom/tests/mochitest/bugs/file_bug291653.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/tests/mochitest/bugs/file_bug291653.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +<html>
     1.5 +  <head>
     1.6 +    <script>
     1.7 +    <!--
     1.8 +    function listener1() {
     1.9 +      window.showModalDialog("data:text/html,<script>var maintest = opener.opener; opener.location = 'data:text/html,test'; maintest.end(); window.close();</script>");
    1.10 +    }
    1.11 +
    1.12 +    function listener2() {
    1.13 +      opener.secondListenerDidRun = true;
    1.14 +    }
    1.15 +    
    1.16 +    window.addEventListener("foo", listener1);
    1.17 +    window.addEventListener("foo", listener2);
    1.18 +    
    1.19 +    
    1.20 +    function fireFoo() {
    1.21 +      var e = document.createEvent("Events");
    1.22 +      e.initEvent("foo", true, true);
    1.23 +      window.dispatchEvent(e);
    1.24 +    }
    1.25 +    //-->
    1.26 +    </script>
    1.27 +  </head>
    1.28 +  <body onload="setTimeout(fireFoo, 0)">
    1.29 +  Test for bug 291653
    1.30 +  </body>
    1.31 +</html>

mercurial