Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / content / base / test / test_bug431082.html
blob42475b200fae928518024ddc07003cb584b5b166
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=431082
5 -->
6 <head>
7 <title>Test for Bug 431082</title>
8 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=431082">Mozilla Bug 431082</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script class="testbody" type="text/javascript">
21 /** Test for Bug 431082 **/
23 SimpleTest.waitForExplicitFinish();
24 addLoadEvent(function() { ok(true, "browser should not crash."); });
25 addLoadEvent(SimpleTest.finish);
27 </script>
28 </pre>
29 <!--
30 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
31 <box id="a" observes="b">
32 <box id="b"/>
33 </box>
35 <box id="a" src="javascript:"/>
36 <box id="b" src="javascript://"/>
37 <editor observes="a"/>
39 <script>
40 function doe() {
41 window.addEventListener('DOMAttrModified', function()
42 {window.frameElement.parentNode.removeChild(window.frameElement);}, true);
43 document.documentElement.appendChild(document.getElementsByTagName('box')[0]);
45 setTimeout(doe,0);
46 </script>
47 </window>
48 -->
49 <iframe src="data:application/vnd.mozilla.xul+xml;charset=utf-8,%3Cwindow%20xmlns%3D%22http%3A//www.mozilla.org/keymaster/gatekeeper/there.is.only.xul%22%3E%0A%3Cbox%20%20id%3D%22a%22%20observes%3D%22b%22%3E%0A%20%20%3Cbox%20id%3D%22b%22/%3E%0A%3C/box%3E%0A%0A%3Cbox%20%20id%3D%22a%22%20%20src%3D%22javascript%3A%22/%3E%0A%3Cbox%20id%3D%22b%22%20src%3D%22javascript%3A//%22/%3E%0A%3Ceditor%20observes%3D%22a%22/%3E%0A%0A%3Cscript%3E%20%0Afunction%20doe%28%29%20%7B%0Awindow.addEventListener%28%27DOMAttrModified%27%2C%20function%28%29%20%7Bwindow.frameElement.parentNode.removeChild%28window.frameElement%29%3B%7D%2C%20true%29%3B%0Adocument.documentElement.appendChild%28document.getElementsByTagName%28%27box%27%29%5B0%5D%29%3B%0A%7D%0AsetTimeout%28doe%2C0%29%3B%0A%3C/script%3E%0A%3C/window%3E" style="width:1000px;height: 300px;"></iframe>
50 </body>
51 </html>