1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/xul/crashtests/377592-1.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +<svg xmlns="http://www.w3.org/2000/svg" 1.5 + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.6 + onload="setTimeout(boom, 30);" 1.7 + class="reftest-wait"> 1.8 + 1.9 + 1.10 +<script> 1.11 + 1.12 +var emptyBinding = "url('data:text/xml,%3Cbindings%20xmlns%3D%22http%3A%2F%2Fwww.mozilla.org%2Fxbl%22%3E%3Cbinding%20id%3D%22foo%22%3E%3Ccontent%3E%0A%0A%20%20%20%20%0A%3C%2Fcontent%3E%3C%2Fbinding%3E%3C%2Fbindings%3E%0A')"; 1.13 + 1.14 +function boom() 1.15 +{ 1.16 + var foreignObject = document.getElementById("foreignObject") 1.17 + foreignObject.style.MozBinding = emptyBinding; 1.18 + 1.19 + document.documentElement.removeAttribute("class"); 1.20 +} 1.21 + 1.22 +</script> 1.23 + 1.24 + 1.25 +<foreignObject width="500" height="500" transform="scale(.7,.7)" id="foreignObject" y="300"> 1.26 + <xul:menuitem /> 1.27 +</foreignObject> 1.28 + 1.29 + 1.30 +</svg>