1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/xul/crashtests/432058-1.xul Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +<?xml version="1.0"?> 1.5 + 1.6 +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 1.7 + 1.8 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();"> 1.9 + 1.10 +<script type="text/javascript"> 1.11 +// <![CDATA[ 1.12 + 1.13 +var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; 1.14 + 1.15 +function boom() 1.16 +{ 1.17 + var lb = document.getElementById("lb"); 1.18 + var firstli = document.getElementById("firstli"); 1.19 + lb.appendChild(document.createElementNS(XUL_NS, "hbox")); 1.20 + lb.appendChild(document.createElementNS(XUL_NS, "listitem")); 1.21 + firstli.style.display = "none"; 1.22 + 1.23 + // Flush layout. 1.24 + document.getBoxObjectFor(document.documentElement).height; 1.25 + 1.26 + lb.removeChild(firstli); 1.27 +} 1.28 + 1.29 +// ]]> 1.30 +</script> 1.31 + 1.32 +<listbox id="lb"><listitem id="firstli"/></listbox> 1.33 + 1.34 +</window>