Add two crashtests.
git-svn-id: svn://10.0.0.236/trunk@241213 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
33
mozilla/content/base/crashtests/338391-1.xhtml
Normal file
33
mozilla/content/base/crashtests/338391-1.xhtml
Normal file
@@ -0,0 +1,33 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
|
||||
<head>
|
||||
|
||||
<script>
|
||||
|
||||
function boom()
|
||||
{
|
||||
var n = document.getElementById("n");
|
||||
|
||||
document.addEventListener("DOMNodeRemoved", foozle, false);
|
||||
n.parentNode.removeChild(n);
|
||||
document.removeEventListener("DOMNodeRemoved", foozle, false);
|
||||
|
||||
function foozle()
|
||||
{
|
||||
document.removeEventListener("DOMNodeRemoved", foozle, false); // prevent accidental recursion
|
||||
|
||||
n.parentNode.removeChild(n);
|
||||
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="setTimeout(boom, 30)">
|
||||
|
||||
<div id="n"></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
35
mozilla/content/base/crashtests/343730-1.xhtml
Normal file
35
mozilla/content/base/crashtests/343730-1.xhtml
Normal file
@@ -0,0 +1,35 @@
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
|
||||
<head>
|
||||
|
||||
<script>
|
||||
<![CDATA[
|
||||
|
||||
var div;
|
||||
|
||||
function boo()
|
||||
{
|
||||
var newSpan = document.createElement('span');
|
||||
div = document.getElementById('div');
|
||||
|
||||
var newScript = document.createElement('script');
|
||||
var nt = document.createTextNode("document.body.removeChild(div);");
|
||||
newScript.appendChild(nt);
|
||||
newSpan.appendChild(newScript);
|
||||
|
||||
div.appendChild(newSpan);
|
||||
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
|
||||
]]>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="setTimeout(boo, 30);">
|
||||
|
||||
<div id="div"></div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -1,3 +1,5 @@
|
||||
load 325730-1.html
|
||||
load 326618-1.html
|
||||
load 326865-1.html
|
||||
load 338391-1.xhtml
|
||||
load 343730-1.xhtml
|
||||
|
||||
Reference in New Issue
Block a user