1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/crashtests/379105-1.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,48 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> 1.5 +<head> 1.6 +<bindings xmlns="http://www.mozilla.org/xbl"> 1.7 + 1.8 +<binding id="x"><content> 1.9 + <zzz><children/></zzz> 1.10 +</content></binding> 1.11 + 1.12 +<binding id="empty"><content> 1.13 +</content></binding> 1.14 + 1.15 +</bindings> 1.16 + 1.17 +<script> 1.18 +<![CDATA[ 1.19 + 1.20 +var xbltarget; 1.21 + 1.22 +function boom1() 1.23 +{ 1.24 + xbltarget = document.getElementById("xbltarget"); 1.25 + xbltarget.style.MozBinding = "url('#x')"; 1.26 + setTimeout(boom2, 0); 1.27 +} 1.28 + 1.29 +function boom2() 1.30 +{ 1.31 + var nodes = SpecialPowers.unwrap(SpecialPowers.wrap(document).getAnonymousNodes(xbltarget)); 1.32 + if (!nodes) { 1.33 + setTimeout(boom2, 10); 1.34 + return; 1.35 + } 1.36 + var anox = nodes[0]; 1.37 + var frame = document.createElementNS("http://www.w3.org/1999/xhtml", "frame") 1.38 + frame.src = "data:text/html,<html><body>Hi!</body></html>"; 1.39 + anox.appendChild(frame); 1.40 + xbltarget.style.MozBinding = "url('#empty')"; 1.41 + 1.42 + document.documentElement.removeAttribute("class"); 1.43 +} 1.44 + 1.45 +]]> 1.46 +</script> 1.47 +</head> 1.48 +<body onload="boom1()"> 1.49 +<div id="xbltarget"></div> 1.50 +</body> 1.51 +</html>