layout/base/crashtests/526378-1.xul

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/crashtests/526378-1.xul	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +<?xml version="1.0"?>
     1.5 +<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
     1.6 +
     1.7 +<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
     1.8 +
     1.9 +<script type="text/javascript">
    1.10 +<![CDATA[
    1.11 +
    1.12 +function boom()
    1.13 +{
    1.14 +  var x = document.getElementById("x");
    1.15 +  
    1.16 +  x.appendChild(document.createTextNode("A"));
    1.17 +  x.appendChild(document.createTextNode("\u202B" + "C"));
    1.18 +
    1.19 +  document.getBoxObjectFor(document.documentElement).height; // flush layout
    1.20 +
    1.21 +  x.normalize();
    1.22 +  x.appendChild(document.createTextNode("D"));
    1.23 +}
    1.24 +
    1.25 +window.addEventListener("load", boom, false);
    1.26 +
    1.27 +]]>
    1.28 +</script>
    1.29 +
    1.30 +<box id="x" style="display:inline"><box/></box>
    1.31 +</window>

mercurial