layout/xul/tree/crashtests/399227-1.xul

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <?xml version="1.0"?>
     3 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
     5 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" class="reftest-wait" onload="setTimeout(boom, 30)">
     8   <script>
     9   function boom()
    10   {
    11     var tree = document.getElementById("thetree");
    12     var selection = tree.view.selection;
    14     selection.select(0);
    15     tree.parentNode.removeChild(tree);
    17     // This is expected to throw an error (it used to crash).
    18     try {
    19       selection.rangedSelect(1, 1, false);
    20     }
    21     catch (ex) {}
    23     document.documentElement.removeAttribute("class");
    24   }
    25   </script>
    27 <tree flex="1" id="thetree">
    28     <treecols>
    29       <treecol label="Name"/>
    30     </treecols>
    31     <treechildren id="TC">
    32       <treeitem id="TI1">
    33         <treerow>
    34           <treecell label="First treecell"/>
    35         </treerow>
    36       </treeitem>
    37       <treeitem id="TI2">
    38         <treerow>
    39           <treecell label="Second treecell"/>
    40         </treerow>
    41       </treeitem>
    42     </treechildren>
    43   </tree>
    44 </window>

mercurial