layout/xul/crashtests/538308-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"?>
     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()">
     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>
    17     <script type="text/javascript"><![CDATA[
    18     function run() {
    19         group = document.getElementById("group");
    20         tc = document.createElement("treechildren");
    21         group.appendChild(tc);
    23         v = document.getElementById("victim");
    24         v.parentNode.removeChild(v);
    25         v = null;
    27         tree = document.getElementById("tr");
    28         col = tree.columns[0];
    29         alert(tree.view.getItemAtIndex(1, col)); 
    30     }
    31     ]]></script>
    32 </window>

mercurial