Bug 538308. Add crashtest.
authorTimothy Nikkel <tnikkel@gmail.com>
Sun, 25 Jul 2010 13:10:31 -0500
changeset 48184 9c4c5b4232b31fa87e4f7500a58c0f72adebd538
parent 48183 56dab6f44fb46e7da6c82634830501ff7c61d9bf
child 48185 f8c56496ae7dad5376ddc7b1fbdad552749c57a8
push id14610
push usertnikkel@gmail.com
push dateSun, 25 Jul 2010 18:37:28 +0000
treeherdermozilla-central@f8c56496ae7d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs538308
milestone2.0b3pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 538308. Add crashtest.
layout/xul/base/src/crashtests/538308-1.xul
layout/xul/base/src/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/layout/xul/base/src/crashtests/538308-1.xul
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+        xmlns:html="http://www.w3.org/1999/xhtml"
+        onload="run()">
+
+    <tree id="tr" flex="1">
+        <treecols>
+            <treecol/>
+        </treecols>
+        <treechildren>
+            <html:optgroup id="group">
+                <html:option id="victim" label="never see this"/>
+            </html:optgroup>
+        </treechildren>
+    </tree>
+
+    <script type="text/javascript"><![CDATA[
+    function run() {
+        group = document.getElementById("group");
+        tc = document.createElement("treechildren");
+        group.appendChild(tc);
+
+        v = document.getElementById("victim");
+        v.parentNode.removeChild(v);
+        v = null;
+
+        tree = document.getElementById("tr");
+        col = tree.columns[0];
+        alert(tree.view.getItemAtIndex(1, col)); 
+    }
+    ]]></script>
+</window>
--- a/layout/xul/base/src/crashtests/crashtests.list
+++ b/layout/xul/base/src/crashtests/crashtests.list
@@ -66,9 +66,10 @@ load 470063-1.html
 load 472189.xul
 load 475133.html
 load 488210-1.xhtml
 load 495728-1.xul
 load 508927-1.xul
 load 508927-2.xul
 load 514300-1.xul
 load 536931-1.xhtml
+load 538308-1.xul
 load menulist-focused.xhtml