layout/xul/crashtests/432058-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" onload="boom();">
     7 <script type="text/javascript">
     8 // <![CDATA[
    10 var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
    12 function boom()
    13 {
    14   var lb = document.getElementById("lb");
    15   var firstli = document.getElementById("firstli");
    16   lb.appendChild(document.createElementNS(XUL_NS, "hbox"));
    17   lb.appendChild(document.createElementNS(XUL_NS, "listitem"));
    18   firstli.style.display = "none";
    20   // Flush layout.
    21   document.getBoxObjectFor(document.documentElement).height;
    23   lb.removeChild(firstli);
    24 }
    26 // ]]>
    27 </script>
    29 <listbox id="lb"><listitem id="firstli"/></listbox>
    31 </window>

mercurial