content/base/test/test_bug431082.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <!--
michael@0 4 https://bugzilla.mozilla.org/show_bug.cgi?id=431082
michael@0 5 -->
michael@0 6 <head>
michael@0 7 <title>Test for Bug 431082</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 </head>
michael@0 11 <body>
michael@0 12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=431082">Mozilla Bug 431082</a>
michael@0 13 <p id="display"></p>
michael@0 14 <div id="content" style="display: none">
michael@0 15
michael@0 16 </div>
michael@0 17 <pre id="test">
michael@0 18 <script class="testbody" type="text/javascript">
michael@0 19
michael@0 20 /** Test for Bug 431082 **/
michael@0 21
michael@0 22 SimpleTest.waitForExplicitFinish();
michael@0 23 addLoadEvent(function() { ok(true, "browser should not crash."); });
michael@0 24 addLoadEvent(SimpleTest.finish);
michael@0 25
michael@0 26 </script>
michael@0 27 </pre>
michael@0 28 <!--
michael@0 29 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
michael@0 30 <box id="a" observes="b">
michael@0 31 <box id="b"/>
michael@0 32 </box>
michael@0 33
michael@0 34 <box id="a" src="javascript:"/>
michael@0 35 <box id="b" src="javascript://"/>
michael@0 36 <editor observes="a"/>
michael@0 37
michael@0 38 <script>
michael@0 39 function doe() {
michael@0 40 window.addEventListener('DOMAttrModified', function()
michael@0 41 {window.frameElement.parentNode.removeChild(window.frameElement);}, true);
michael@0 42 document.documentElement.appendChild(document.getElementsByTagName('box')[0]);
michael@0 43 }
michael@0 44 setTimeout(doe,0);
michael@0 45 </script>
michael@0 46 </window>
michael@0 47 -->
michael@0 48 <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>
michael@0 49 </body>
michael@0 50 </html>
michael@0 51

mercurial