Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <html> |
michael@0 | 2 | <head> |
michael@0 | 3 | <script> |
michael@0 | 4 | <!-- |
michael@0 | 5 | function listener1() { |
michael@0 | 6 | window.showModalDialog("data:text/html,<script>var maintest = opener.opener; opener.location = 'data:text/html,test'; maintest.end(); window.close();</script>"); |
michael@0 | 7 | } |
michael@0 | 8 | |
michael@0 | 9 | function listener2() { |
michael@0 | 10 | opener.secondListenerDidRun = true; |
michael@0 | 11 | } |
michael@0 | 12 | |
michael@0 | 13 | window.addEventListener("foo", listener1); |
michael@0 | 14 | window.addEventListener("foo", listener2); |
michael@0 | 15 | |
michael@0 | 16 | |
michael@0 | 17 | function fireFoo() { |
michael@0 | 18 | var e = document.createEvent("Events"); |
michael@0 | 19 | e.initEvent("foo", true, true); |
michael@0 | 20 | window.dispatchEvent(e); |
michael@0 | 21 | } |
michael@0 | 22 | //--> |
michael@0 | 23 | </script> |
michael@0 | 24 | </head> |
michael@0 | 25 | <body onload="setTimeout(fireFoo, 0)"> |
michael@0 | 26 | Test for bug 291653 |
michael@0 | 27 | </body> |
michael@0 | 28 | </html> |