layout/xul/crashtests/538308-1.xul

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:bc8692840827
1 <?xml version="1.0"?>
2 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
3 xmlns:html="http://www.w3.org/1999/xhtml"
4 onload="run()">
5
6 <tree id="tr" flex="1">
7 <treecols>
8 <treecol/>
9 </treecols>
10 <treechildren>
11 <html:optgroup id="group">
12 <html:option id="victim" label="never see this"/>
13 </html:optgroup>
14 </treechildren>
15 </tree>
16
17 <script type="text/javascript"><![CDATA[
18 function run() {
19 group = document.getElementById("group");
20 tc = document.createElement("treechildren");
21 group.appendChild(tc);
22
23 v = document.getElementById("victim");
24 v.parentNode.removeChild(v);
25 v = null;
26
27 tree = document.getElementById("tr");
28 col = tree.columns[0];
29 alert(tree.view.getItemAtIndex(1, col));
30 }
31 ]]></script>
32 </window>

mercurial