dom/smil/crashtests/641388-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/smil/crashtests/641388-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,98 @@
     1.4 +<script>
     1.5 +
     1.6 +var ar = new Array(100000);
     1.7 +
     1.8 +function fill() {
     1.9 +        var s = unescape("%ubeef%udead%udead%udead%u0000%u0000%u3030%u3030");
    1.10 +        while(s.length < 0x40000) {
    1.11 +                for(var x=0; x<100; x++) ar.push(s+s);
    1.12 +                s+=s;
    1.13 +        }
    1.14 +}
    1.15 +
    1.16 +
    1.17 +function gc() {
    1.18 +                var evt = document.createEvent("Events");
    1.19 +                evt.initEvent("please-gc", true, false);
    1.20 +                document.dispatchEvent(evt);
    1.21 +		fill();
    1.22 +}
    1.23 +
    1.24 +
    1.25 +gc();
    1.26 +function start(){
    1.27 +tmp = document.createElement('iframe');
    1.28 +tmp.src="data:image/svg+xml,"+escape("<?xml version='1.0' standalone='no'?><!DOCTYPE svg><svg xmlns='http://www.w3.org/2000/svg'><defs id='element1'></defs><g id='element5'></g></svg>");
    1.29 +tmp.id = 'ifr23282';
    1.30 +try{document.getElementById('store_div').appendChild(tmp);}catch(e){}
    1.31 +window.setTimeout('startrly()', 100);
    1.32 +} function startrly() {
    1.33 +try{o6=document.createComment(null);}catch(e){}
    1.34 +try{o9=document.getElementById('ifr23282').contentDocument.documentElement;;}catch(e){}
    1.35 +try{o13=document.getElementById('ifr23282').contentDocument.getElementById('element1');;}catch(e){}
    1.36 +try{o15=document.getElementById('ifr23282').contentDocument.getElementById('element5');;}catch(e){}
    1.37 +try{tmp = document.createElement('iframe');}catch(e){}
    1.38 +try{tmp.id = 'ifr6690';}catch(e){}
    1.39 +try{o6.ownerDocument.documentElement.appendChild(tmp);}catch(e){}
    1.40 +window.setTimeout('start_dataiframe0()',100);
    1.41 +} function start_dataiframe0(){
    1.42 +try{o19=o6.ownerDocument.getElementById('ifr6690').contentDocument.documentElement;;}catch(e){}
    1.43 +try{o24=document.createElementNS('http://www.w3.org/1998/Math/MathML','annotation-xml');;}catch(e){}
    1.44 +try{o35=document.createElementNS('http://www.w3.org/1998/Math/MathML','emptyset');;}catch(e){}
    1.45 +try{o40=o19.cloneNode(false);;}catch(e){}
    1.46 +try{o19.appendChild(o13);}catch(e){}
    1.47 +try{o19.appendChild(o15);}catch(e){}
    1.48 +try{o24.appendChild(o40);}catch(e){}
    1.49 +try{tmp = document.createElement('iframe');}catch(e){}
    1.50 +tmp.src="data:text/html,<article%20id='element1'></article><command%20id='element3'></command>";
    1.51 +try{tmp.id = 'ifr17516';}catch(e){}
    1.52 +try{o13.ownerDocument.documentElement.appendChild(tmp);}catch(e){}
    1.53 +window.setTimeout('start_dataiframe4()',100);
    1.54 +} function start_dataiframe4(){
    1.55 +try{o62=o13.ownerDocument.getElementById('ifr17516').contentDocument.getElementById('element1');;}catch(e){}
    1.56 +try{tmp.id = 'ifr2522';}catch(e){}
    1.57 +try{o101=o15.ownerDocument.getElementById('ifr2522').contentDocument.getElementById('element3');;}catch(e){}
    1.58 +try{o101.appendChild(o24);}catch(e){}
    1.59 +try{o109=o35.setUserData('key',null,function (o,k,d,s,ds) { gc(); });;}catch(e){}
    1.60 +try{o112=document.createElementNS('http://www.w3.org/1999/xhtml', 'script');;}catch(e){}
    1.61 +try{o124=document.createElementNS('http://www.w3.org/1998/Math/MathML','root');;}catch(e){}
    1.62 +try{o125=document.createElementNS('http://www.w3.org/2000/svg','font-face');;}catch(e){}
    1.63 +gc()
    1.64 +try{o150=o40;}catch(e){}
    1.65 +try{tmp.id = 'ifr44501';}catch(e){}
    1.66 +try{o124.ownerDocument.documentElement.appendChild(tmp);}catch(e){}
    1.67 +window.setTimeout('start_dataiframe7()',100);
    1.68 +} function start_dataiframe7(){
    1.69 +try{o152=o124.ownerDocument.getElementById('ifr44501').contentDocument.documentElement;;}catch(e){}
    1.70 +try{tmp = document.createElement('iframe');}catch(e){}
    1.71 +try{tmp.src="data:text/html,<div%20id='element1'></div>";}catch(e){}
    1.72 +try{tmp.id = 'ifr55543';}catch(e){}
    1.73 +try{o125.ownerDocument.documentElement.appendChild(tmp);}catch(e){}
    1.74 +window.setTimeout('start_dataiframe10()',100);
    1.75 +} function start_dataiframe10(){
    1.76 +try{o198=o125.ownerDocument.getElementById('ifr55543').contentDocument.getElementById('element1');;}catch(e){}
    1.77 +try{o152.appendChild(o101);}catch(e){}
    1.78 +try{o152.ownerDocument.documentElement.appendChild(tmp);}catch(e){}
    1.79 +window.setTimeout('start_dataiframe17()',100);
    1.80 +} function start_dataiframe17(){
    1.81 +try{o286=o152.ownerDocument.getElementById('ifr55543').contentDocument.documentElement;;}catch(e){}
    1.82 +try{o288=o152.ownerDocument.getElementById('ifr55543').contentDocument.getElementById('element1');;}catch(e){}
    1.83 +try{o349=document.createElementNS('http://www.w3.org/2000/svg','animate');;}catch(e){}
    1.84 +try{o150.appendChild(o349);}catch(e){}
    1.85 +try{o288.appendChild(o150);}catch(e){}
    1.86 +try{o198.appendChild(o349);}catch(e){}
    1.87 +window.setTimeout('start_dataiframe24()',100);
    1.88 +} function start_dataiframe24(){ 
    1.89 +try{o286.appendChild(o9);}catch(e){}
    1.90 +try{o62.appendChild(o152);}catch(e){}
    1.91 +try{o112.appendChild(o286);}catch(e){}
    1.92 +try{o534=o35.cloneNode(false);;}catch(e){}
    1.93 +gc();
    1.94 +o35 = null;
    1.95 +gc();
    1.96 +window.setTimeout("fill()",300);
    1.97 +}
    1.98 +</script>
    1.99 +<body onload="start()">
   1.100 +<div id="store_div"></div>
   1.101 +</body>

mercurial