layout/xul/crashtests/538308-1.xul

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

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

mercurial