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 | <!DOCTYPE HTML> |
michael@0 | 2 | <html> |
michael@0 | 3 | <!-- |
michael@0 | 4 | https://bugzilla.mozilla.org/show_bug.cgi?id=431833 |
michael@0 | 5 | --> |
michael@0 | 6 | <head> |
michael@0 | 7 | <title>Test for Bug 431833</title> |
michael@0 | 8 | <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 9 | <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> |
michael@0 | 10 | <script> |
michael@0 | 11 | var loadsComplete = []; |
michael@0 | 12 | function test(e) { |
michael@0 | 13 | loadsComplete[e.target.id] = true; |
michael@0 | 14 | } |
michael@0 | 15 | window.addEventListener('DOMFrameContentLoaded',test,true); |
michael@0 | 16 | </script> |
michael@0 | 17 | </head> |
michael@0 | 18 | <body> |
michael@0 | 19 | |
michael@0 | 20 | <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=431833">Mozilla Bug 431833</a> |
michael@0 | 21 | <p id="display"> |
michael@0 | 22 | <iframe id="f1" src="data:text/html,1"></iframe> |
michael@0 | 23 | <iframe id="f2" src="data:text/html,2"></iframe> |
michael@0 | 24 | <iframe id="f3" src="data:text/html,<iframe id='f4' src='data:text/html,3'></iframe>"></iframe> |
michael@0 | 25 | </p> |
michael@0 | 26 | <div id="content" style="display: none"> |
michael@0 | 27 | |
michael@0 | 28 | </div> |
michael@0 | 29 | <pre id="test"> |
michael@0 | 30 | <script class="testbody" type="text/javascript"> |
michael@0 | 31 | |
michael@0 | 32 | /** Test for Bug 431833 **/ |
michael@0 | 33 | |
michael@0 | 34 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 35 | |
michael@0 | 36 | addLoadEvent(function() { |
michael@0 | 37 | function check(id) { |
michael@0 | 38 | ok(loadsComplete[id], "DOMFrameContentLoaded didn't fire for " + id); |
michael@0 | 39 | } |
michael@0 | 40 | check("f1"); |
michael@0 | 41 | check("f2"); |
michael@0 | 42 | check("f3"); |
michael@0 | 43 | check("f4"); |
michael@0 | 44 | }); |
michael@0 | 45 | |
michael@0 | 46 | addLoadEvent(SimpleTest.finish); |
michael@0 | 47 | </script> |
michael@0 | 48 | </pre> |
michael@0 | 49 | </body> |
michael@0 | 50 | </html> |
michael@0 | 51 |