layout/xul/crashtests/538308-1.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/xul/crashtests/538308-1.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     1.6 +        xmlns:html="http://www.w3.org/1999/xhtml"
     1.7 +        onload="run()">
     1.8 +
     1.9 +    <tree id="tr" flex="1">
    1.10 +        <treecols>
    1.11 +            <treecol/>
    1.12 +        </treecols>
    1.13 +        <treechildren>
    1.14 +            <html:optgroup id="group">
    1.15 +                <html:option id="victim" label="never see this"/>
    1.16 +            </html:optgroup>
    1.17 +        </treechildren>
    1.18 +    </tree>
    1.19 +
    1.20 +    <script type="text/javascript"><![CDATA[
    1.21 +    function run() {
    1.22 +        group = document.getElementById("group");
    1.23 +        tc = document.createElement("treechildren");
    1.24 +        group.appendChild(tc);
    1.25 +
    1.26 +        v = document.getElementById("victim");
    1.27 +        v.parentNode.removeChild(v);
    1.28 +        v = null;
    1.29 +
    1.30 +        tree = document.getElementById("tr");
    1.31 +        col = tree.columns[0];
    1.32 +        alert(tree.view.getItemAtIndex(1, col)); 
    1.33 +    }
    1.34 +    ]]></script>
    1.35 +</window>

mercurial