Adding crashtest for bug 338674 on a CLOSED TREE
authorJesse Ruderman <jruderman@gmail.com>
Sat, 29 Nov 2008 18:19:36 -0800
changeset 22127 2ad4efa5222be15fe124bdf0de1039f24be0a4c3
parent 22126 44cb9f915e4ed8f9256487d5d419625387352f9f
child 22128 f31dd22e5c91b9264670bc226999aae8abf27242
push idunknown
push userunknown
push dateunknown
bugs338674
milestone1.9.1b3pre
Adding crashtest for bug 338674 on a CLOSED TREE
dom/src/base/crashtests/338674-1.xhtml
dom/src/base/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/dom/src/base/crashtests/338674-1.xhtml
@@ -0,0 +1,36 @@
+<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
+<head>
+
+<script>
+
+function boom()
+{
+  var s = document.getElementById("s")
+  var t = s.previousSibling; // a whitespace text node..
+
+  document.addEventListener("DOMAttrModified", bang, false);
+  rM(s);
+  document.removeEventListener("DOMAttrModified", bang, false);
+
+  function bang(ev) {
+    document.removeEventListener("DOMAttrModified", bang, false); // avoid accidental recursion, multiple calls, etc.
+    rM(t);
+  }
+  
+  document.documentElement.removeAttribute("class");
+}
+
+function rM(n) { n.parentNode.removeChild(n); }
+
+</script>
+
+</head>
+
+<body onload="setTimeout(boom, 1);">
+
+<div><select><option>C</option></select></div>
+
+<span id="s">A <div>B</div></span>
+
+</body>
+</html>
--- a/dom/src/base/crashtests/crashtests.list
+++ b/dom/src/base/crashtests/crashtests.list
@@ -1,8 +1,9 @@
 load 327571-1.html
 load 327695-1.html
 load 329481-1.xhtml
+load 338674-1.xhtml
 load 346381-1.html
 load 359432-1.xhtml
 load 369413-1.html
 load 372554-1.html
 load 404869-1.xul