dom/xbl/crashtests/472260-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/xbl/crashtests/472260-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.5 +<head>
     1.6 +
     1.7 +<bindings xmlns="http://www.mozilla.org/xbl">
     1.8 +  <binding id="foo"><content><span xmlns="http://www.w3.org/1999/xhtml"/></content></binding>
     1.9 +  <binding id="bar"><content></content></binding>
    1.10 +</bindings>
    1.11 +
    1.12 +<script type="text/javascript">
    1.13 +// <![CDATA[
    1.14 +
    1.15 +function boom()
    1.16 +{
    1.17 +  var bo = document.getElementById("bo");
    1.18 +  var anon = SpecialPowers.wrap(document).getAnonymousNodes(bo)[0];
    1.19 +
    1.20 +  bo.style.MozBinding = "url(#bar)";
    1.21 +
    1.22 +  var fr = document.createElementNS("http://www.w3.org/1999/xhtml", "iframe");
    1.23 +  fr.setAttribute("src", "javascript:void 0;"); 
    1.24 +  anon.appendChild(fr);
    1.25 +  
    1.26 +  document.documentElement.removeAttribute("class");
    1.27 +}
    1.28 +
    1.29 +]]>
    1.30 +</script>
    1.31 +</head>
    1.32 +
    1.33 +<body onload="setTimeout(boom, 100);">
    1.34 +
    1.35 +<span style="-moz-binding: url(#foo)" id="bo"></span>
    1.36 +
    1.37 +</body>
    1.38 +</html>

mercurial