layout/generic/crashtests/383089-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/generic/crashtests/383089-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,86 @@
     1.4 +<html style="width: 1px;" class="reftest-wait"><head style="float: left; position: fixed; display: initial;" id="head">
     1.5 +<meta http-equiv="content-type" content="text/html; charset=UTF-8">
     1.6 +
     1.7 +
     1.8 +
     1.9 +<script style="display: none;" type="text/javascript;version=1.7">
    1.10 +
    1.11 +var iter;
    1.12 +var interv;
    1.13 +
    1.14 +function olo()
    1.15 +{
    1.16 +  iter = foo();
    1.17 +  interv = setInterval(neext, 30);
    1.18 +}
    1.19 +
    1.20 +function neext()
    1.21 +{
    1.22 +  try {
    1.23 +    iter.next();
    1.24 +  } catch (e if e instanceof StopIteration) {
    1.25 +    clearInterval(interv);
    1.26 +  }
    1.27 +}
    1.28 +
    1.29 +function foo()
    1.30 +{
    1.31 +  var docElem = document.documentElement;
    1.32 +  var head = document.getElementById("head");
    1.33 +  var br1 = document.getElementById("br1");
    1.34 +  var br2 = document.getElementById("br2");
    1.35 +  var br3 = document.getElementById("br3");
    1.36 +  var br4 = document.getElementById("br4");
    1.37 +  var br5 = document.getElementById("br5");
    1.38 +  var br6 = document.getElementById("br6");
    1.39 +  var br7 = document.getElementById("br7");
    1.40 +  var tableRow = document.getElementById("tableRow");
    1.41 +      
    1.42 +  br6.style.width = "1px";
    1.43 +  br1.style.overflow = "visible";
    1.44 +  head.style.cssFloat = "left";
    1.45 +  br4.style.position = "static";
    1.46 +  br7.style.color = "green";
    1.47 +  br3.style.height = "auto";
    1.48 +  yield;
    1.49 +
    1.50 +  br7.style.width = "2px";
    1.51 +  yield;
    1.52 +
    1.53 +  br5.style.background = "yellow";
    1.54 +  br7.style.color = "black";
    1.55 +  yield;
    1.56 +
    1.57 +  br7.style.display = "table-cell";
    1.58 +  head.style.position = "fixed";
    1.59 +  br5.style.display = "inline";
    1.60 +  br3.style.clear = "both";
    1.61 +  br6.style.visibility = "visible";
    1.62 +  yield;
    1.63 +
    1.64 +  tableRow.style.display = "list-item";
    1.65 +  br3.style.width = "auto";
    1.66 +  br2.style.clear = "none";
    1.67 +  head.style.display = "initial"; // doesn't seem to crash when this is "block"!
    1.68 +  docElem.style.width = "1px";
    1.69 +  
    1.70 +  document.documentElement.removeAttribute("class");
    1.71 +}
    1.72 +
    1.73 +</script>
    1.74 +
    1.75 +<style>
    1.76 +</style>
    1.77 +
    1.78 +</head><body onload="setTimeout(olo, 30);">
    1.79 +
    1.80 +<br style="overflow: visible;" id="br1">
    1.81 +<br style="clear: none;" id="br2">
    1.82 +<br style="height: auto; clear: both; width: auto;" id="br3">
    1.83 +<br style="position: static;" id="br4">
    1.84 +<br style="background: yellow none repeat scroll 0% 0%; background-clip: initial; background-origin: initial; -moz-background-inline-policy: initial; display: inline;" id="br5">
    1.85 +<br style="width: 1px; visibility: visible;" id="br6">
    1.86 +<br style="color: black; width: 2px; display: table-cell;" id="br7">
    1.87 +<table border="1"><tbody><tr style="display: list-item;" id="tableRow"><td>x</td></tr></tbody></table>
    1.88 +
    1.89 +</body></html>

mercurial