Add the crashtest for bug 490760

This commit is contained in:
Boris Zbarsky 2009-05-17 10:22:55 -04:00
parent 0f6dae2977
commit 87baef0972
2 changed files with 26 additions and 0 deletions

View File

@ -309,6 +309,7 @@ _TEST_FILES = test_bug5141.html \
test_bug466751.xhtml \
test_bug461555.html \
test_sync_xhr_timer.xhtml \
test_bug490760.xhtml \
$(NULL)
# Disabled; see bug 492181
# test_plugin_freezing.html

View File

@ -0,0 +1,25 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
<![CDATA[
function boom()
{
var q = document.getElementsByTagName("style")[0];
window.addEventListener("DOMNodeRemoved", f, false);
q.innerHTML = "<span><\/span>";
window.removeEventListener("DOMNodeRemoved", f, false);
function f()
{
window.removeEventListener("DOMNodeRemoved", f, false);
q.removeChild(q.childNodes[1]);
}
}
]]>
</script>
</head>
<body onload="boom();"><style><span></span><span></span></style></body>
</html>