1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/crashtests/561981-2-iframe.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.5 +<head> 1.6 +<script> 1.7 +<![CDATA[ 1.8 + 1.9 +var i = 0; 1.10 + 1.11 +function init() 1.12 +{ 1.13 + targetWindow = window.frames[0]; 1.14 + targetDocument = targetWindow.document; 1.15 + targetDocument.designMode = 'on'; 1.16 + setTimeout(whack, 30); 1.17 +} 1.18 + 1.19 +function whack() 1.20 +{ 1.21 + if (++i > 100) return; 1.22 + document.documentElement.style.MozBinding = 'url("data:text/xml,' + encodeURIComponent("<bindings xmlns=\"http://www.mozilla.org/xbl\"><binding id=\"foo\" g=\""+Math.random()+"\"><content>\n<\/content><\/binding><\/bindings>\n") + '")'; 1.23 + setTimeout(bonk, 10); 1.24 +} 1.25 + 1.26 +function bonk() 1.27 +{ 1.28 + document.getElementById("i").style.MozBinding = 'url("data:text/xml,' + encodeURIComponent("<bindings xmlns=\"http://www.mozilla.org/xbl\"><binding id=\"foo\" g=\""+Math.random()+"\"><content>\n\n<\/content><\/binding><\/bindings>\n") + '")'; 1.29 + setTimeout(whack, 10); 1.30 +} 1.31 + 1.32 +]]> 1.33 +</script> 1.34 +</head> 1.35 + 1.36 +<body onload="init()"> 1.37 + 1.38 +<iframe id="i" src="data:text/html," style="width: 95%; height: 500px;"/> 1.39 + 1.40 +</body> 1.41 +</html>