Bug 515726 - add crashtest
authorJesse Ruderman <jruderman@gmail.com>
Sun, 12 Dec 2010 12:54:26 -0800
changeset 59142 d3cd88470ed507ab0de1b025f1f1e59ca610dfa4
parent 59141 d90adf71f70a365fc37ec8de5b24d51fe52ceaf6
child 59143 0e0712ca9f7da2354ca814048e9ea1586a719c7d
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
bugs515726
milestone2.0b8pre
Bug 515726 - add crashtest
js/src/xpconnect/crashtests/515726-1.html
js/src/xpconnect/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/js/src/xpconnect/crashtests/515726-1.html
@@ -0,0 +1,26 @@
+<html>
+<head>
+<script>
+
+function boom()
+{
+  var frame = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
+
+  document.documentElement.appendChild(frame);
+  var framedoc = frame.contentDocument;
+  document.documentElement.removeChild(frame);
+
+  framedoc.removeChild(framedoc.documentElement);
+  framedoc.appendChild(frame);
+
+  try { frame.appendChild(undefined); } catch(e) { }
+
+  document.removeChild(document.documentElement);
+  document.appendChild(frame);
+}
+
+</script>
+</head>
+
+<body onload="boom();"></body>
+</html>
--- a/js/src/xpconnect/crashtests/crashtests.list
+++ b/js/src/xpconnect/crashtests/crashtests.list
@@ -18,12 +18,13 @@ load 467693-1.html
 load 468552-1.html
 load 471366-1.html
 load 475185-1.html
 load 475291-1.html
 load 503286-1.html
 load 504000-1.html
 load 509075-1.html
 load 512815-1.html
+load 515726-1.html
 load 545291-1.html
 load 558979.html
 load 582649.html
 load 608963.html