content/base/test/test_bug431082.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/base/test/test_bug431082.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,51 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=431082
     1.8 +-->
     1.9 +<head>
    1.10 +  <title>Test for Bug 431082</title>
    1.11 +  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.12 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    1.13 +</head>
    1.14 +<body>
    1.15 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=431082">Mozilla Bug 431082</a>
    1.16 +<p id="display"></p>
    1.17 +<div id="content" style="display: none">
    1.18 +  
    1.19 +</div>
    1.20 +<pre id="test">
    1.21 +<script class="testbody" type="text/javascript">
    1.22 +
    1.23 +/** Test for Bug 431082 **/
    1.24 +
    1.25 +SimpleTest.waitForExplicitFinish();
    1.26 +addLoadEvent(function() { ok(true, "browser should not crash."); });
    1.27 +addLoadEvent(SimpleTest.finish);
    1.28 +
    1.29 +</script>
    1.30 +</pre>
    1.31 +<!--
    1.32 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
    1.33 +<box  id="a" observes="b">
    1.34 +  <box id="b"/>
    1.35 +</box>
    1.36 +
    1.37 +<box  id="a"  src="javascript:"/>
    1.38 +<box id="b" src="javascript://"/>
    1.39 +<editor observes="a"/>
    1.40 +
    1.41 +<script> 
    1.42 +function doe() {
    1.43 +window.addEventListener('DOMAttrModified', function()
    1.44 +{window.frameElement.parentNode.removeChild(window.frameElement);}, true);
    1.45 +document.documentElement.appendChild(document.getElementsByTagName('box')[0]);
    1.46 +}
    1.47 +setTimeout(doe,0);
    1.48 +</script>
    1.49 +</window>
    1.50 +-->
    1.51 +<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>
    1.52 +</body>
    1.53 +</html>
    1.54 +

mercurial