mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Bug 641388 - crash tests
This commit is contained in:
parent
5da019e55b
commit
2594efcacb
98
content/smil/crashtests/641388-1.html
Normal file
98
content/smil/crashtests/641388-1.html
Normal file
@ -0,0 +1,98 @@
|
||||
<script>
|
||||
|
||||
var ar = new Array(100000);
|
||||
|
||||
function fill() {
|
||||
var s = unescape("%ubeef%udead%udead%udead%u0000%u0000%u3030%u3030");
|
||||
while(s.length < 0x40000) {
|
||||
for(var x=0; x<100; x++) ar.push(s+s);
|
||||
s+=s;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function gc() {
|
||||
var evt = document.createEvent("Events");
|
||||
evt.initEvent("please-gc", true, false);
|
||||
document.dispatchEvent(evt);
|
||||
fill();
|
||||
}
|
||||
|
||||
|
||||
gc();
|
||||
function start(){
|
||||
tmp = document.createElement('iframe');
|
||||
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>");
|
||||
tmp.id = 'ifr23282';
|
||||
try{document.getElementById('store_div').appendChild(tmp);}catch(e){}
|
||||
window.setTimeout('startrly()', 100);
|
||||
} function startrly() {
|
||||
try{o6=document.createComment(null);}catch(e){}
|
||||
try{o9=document.getElementById('ifr23282').contentDocument.documentElement;;}catch(e){}
|
||||
try{o13=document.getElementById('ifr23282').contentDocument.getElementById('element1');;}catch(e){}
|
||||
try{o15=document.getElementById('ifr23282').contentDocument.getElementById('element5');;}catch(e){}
|
||||
try{tmp = document.createElement('iframe');}catch(e){}
|
||||
try{tmp.id = 'ifr6690';}catch(e){}
|
||||
try{o6.ownerDocument.documentElement.appendChild(tmp);}catch(e){}
|
||||
window.setTimeout('start_dataiframe0()',100);
|
||||
} function start_dataiframe0(){
|
||||
try{o19=o6.ownerDocument.getElementById('ifr6690').contentDocument.documentElement;;}catch(e){}
|
||||
try{o24=document.createElementNS('http://www.w3.org/1998/Math/MathML','annotation-xml');;}catch(e){}
|
||||
try{o35=document.createElementNS('http://www.w3.org/1998/Math/MathML','emptyset');;}catch(e){}
|
||||
try{o40=o19.cloneNode(false);;}catch(e){}
|
||||
try{o19.appendChild(o13);}catch(e){}
|
||||
try{o19.appendChild(o15);}catch(e){}
|
||||
try{o24.appendChild(o40);}catch(e){}
|
||||
try{tmp = document.createElement('iframe');}catch(e){}
|
||||
tmp.src="data:text/html,<article%20id='element1'></article><command%20id='element3'></command>";
|
||||
try{tmp.id = 'ifr17516';}catch(e){}
|
||||
try{o13.ownerDocument.documentElement.appendChild(tmp);}catch(e){}
|
||||
window.setTimeout('start_dataiframe4()',100);
|
||||
} function start_dataiframe4(){
|
||||
try{o62=o13.ownerDocument.getElementById('ifr17516').contentDocument.getElementById('element1');;}catch(e){}
|
||||
try{tmp.id = 'ifr2522';}catch(e){}
|
||||
try{o101=o15.ownerDocument.getElementById('ifr2522').contentDocument.getElementById('element3');;}catch(e){}
|
||||
try{o101.appendChild(o24);}catch(e){}
|
||||
try{o109=o35.setUserData('key',null,function (o,k,d,s,ds) { gc(); });;}catch(e){}
|
||||
try{o112=document.createElementNS('http://www.w3.org/1999/xhtml', 'script');;}catch(e){}
|
||||
try{o124=document.createElementNS('http://www.w3.org/1998/Math/MathML','root');;}catch(e){}
|
||||
try{o125=document.createElementNS('http://www.w3.org/2000/svg','font-face');;}catch(e){}
|
||||
gc()
|
||||
try{o150=o40;}catch(e){}
|
||||
try{tmp.id = 'ifr44501';}catch(e){}
|
||||
try{o124.ownerDocument.documentElement.appendChild(tmp);}catch(e){}
|
||||
window.setTimeout('start_dataiframe7()',100);
|
||||
} function start_dataiframe7(){
|
||||
try{o152=o124.ownerDocument.getElementById('ifr44501').contentDocument.documentElement;;}catch(e){}
|
||||
try{tmp = document.createElement('iframe');}catch(e){}
|
||||
try{tmp.src="data:text/html,<div%20id='element1'></div>";}catch(e){}
|
||||
try{tmp.id = 'ifr55543';}catch(e){}
|
||||
try{o125.ownerDocument.documentElement.appendChild(tmp);}catch(e){}
|
||||
window.setTimeout('start_dataiframe10()',100);
|
||||
} function start_dataiframe10(){
|
||||
try{o198=o125.ownerDocument.getElementById('ifr55543').contentDocument.getElementById('element1');;}catch(e){}
|
||||
try{o152.appendChild(o101);}catch(e){}
|
||||
try{o152.ownerDocument.documentElement.appendChild(tmp);}catch(e){}
|
||||
window.setTimeout('start_dataiframe17()',100);
|
||||
} function start_dataiframe17(){
|
||||
try{o286=o152.ownerDocument.getElementById('ifr55543').contentDocument.documentElement;;}catch(e){}
|
||||
try{o288=o152.ownerDocument.getElementById('ifr55543').contentDocument.getElementById('element1');;}catch(e){}
|
||||
try{o349=document.createElementNS('http://www.w3.org/2000/svg','animate');;}catch(e){}
|
||||
try{o150.appendChild(o349);}catch(e){}
|
||||
try{o288.appendChild(o150);}catch(e){}
|
||||
try{o198.appendChild(o349);}catch(e){}
|
||||
window.setTimeout('start_dataiframe24()',100);
|
||||
} function start_dataiframe24(){
|
||||
try{o286.appendChild(o9);}catch(e){}
|
||||
try{o62.appendChild(o152);}catch(e){}
|
||||
try{o112.appendChild(o286);}catch(e){}
|
||||
try{o534=o35.cloneNode(false);;}catch(e){}
|
||||
gc();
|
||||
o35 = null;
|
||||
gc();
|
||||
window.setTimeout("fill()",300);
|
||||
}
|
||||
</script>
|
||||
<body onload="start()">
|
||||
<div id="store_div"></div>
|
||||
</body>
|
79
content/smil/crashtests/641388-2.html
Normal file
79
content/smil/crashtests/641388-2.html
Normal file
@ -0,0 +1,79 @@
|
||||
<script>
|
||||
function gc() {
|
||||
var evt = document.createEvent("Events");
|
||||
evt.initEvent("please-gc", true, false);
|
||||
document.dispatchEvent(evt);
|
||||
}
|
||||
var ar =new Array(100000);
|
||||
function fill() {
|
||||
var s = unescape("%u0000%u0000%u3030%u3030");
|
||||
while(s.length < 0x40000) {
|
||||
for(var x=0; x<100; x++) ar.push(s+s);
|
||||
s+=s;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function start(){
|
||||
tmp = document.createElement('iframe'); 'ifr16727';
|
||||
document.documentElement.appendChild(tmp);
|
||||
window.setTimeout('start_dataiframe0()',100);
|
||||
} function start_dataiframe0(){
|
||||
o20=document.createElement('iframe');
|
||||
tmp.id = 'ifr4446';;
|
||||
o68=o20;
|
||||
o101=document.getElementById('ifr4446').contentDocument.createElement('thead');;
|
||||
tmp.src="data:text/html," + escape("<html id='element0'><noscript id='element1'></html>");
|
||||
tmp.id = 'ifr49879';
|
||||
window.setTimeout('start_dataiframe6()',100);
|
||||
} function start_dataiframe6(){
|
||||
o104=document.getElementById('ifr49879').contentDocument.getElementById('element0');;
|
||||
o105=document.getElementById('ifr49879').contentDocument.getElementById('element1');;
|
||||
o120=document.getElementById('ifr49879').contentDocument.createElement('figure');;
|
||||
o105.appendChild(o120);
|
||||
o122=o105.lastElementChild;
|
||||
o140=document.getElementById('ifr49879').contentDocument.createElement('style');;
|
||||
o141=document.getElementById('ifr49879').contentDocument.createElementNS('http://www.w3.org/2000/svg','animate');;
|
||||
o151=o141.cloneNode(true);;
|
||||
tmp = document.createElement('iframe');
|
||||
tmp.src='data:text/html,%3Cform%20style%3B%27%20id%3D%27element3%27%3E%20%3Caside%20style%20id%3D%27element4%27%%3E';
|
||||
tmp.id = 'ifr13645';
|
||||
document.documentElement.appendChild(tmp);
|
||||
window.setTimeout('start_dataiframe8()',100);
|
||||
} function start_dataiframe8(){
|
||||
o154=document.getElementById('ifr13645').contentDocument.documentElement;;
|
||||
o158=document.getElementById('ifr13645').contentDocument.getElementById('element3');;
|
||||
o159=document.getElementById('ifr13645').contentDocument.getElementById('element4');;
|
||||
tmp.id = 'ifr17164';
|
||||
o120.ownerDocument.documentElement.appendChild(tmp);
|
||||
o171=o120.ownerDocument.getElementById('ifr17164').contentDocument.documentElement;;
|
||||
tmp = o158.ownerDocument.createElement('iframe');
|
||||
o101.appendChild(o151);
|
||||
o122.appendChild(o154);
|
||||
o68.appendChild(o171);
|
||||
o179=document.createElement('tbody');;
|
||||
o154.addEventListener('DOMNodeRemoved',function (event) { gc(); },false);
|
||||
tmp.src='data:text/html,%3Cs%27%20id%3D%27element0%27element4%27%3E%3Cs%20id%3D%27element5%27%20style%3D%27text-indent%3A%20-1%25%3Bmin-w%2C%20rgba%28255%2C0%2C0%2C0%29%20strict%3Bcolumn-count7element9%27%3E%s%3E';
|
||||
tmp.id = 'ifr35960';
|
||||
o154.ownerDocument.documentElement.appendChild(tmp);
|
||||
window.setTimeout('start_dataiframe13()',100);
|
||||
} function start_dataiframe13(){
|
||||
o217=o154.ownerDocument.getElementById('ifr35960').contentDocument.documentElement;;
|
||||
o218=o154.ownerDocument.getElementById('ifr35960').contentDocument.getElementById('element0');;
|
||||
o223=o154.ownerDocument.getElementById('ifr35960').contentDocument.getElementById('element5');;
|
||||
o223.appendChild(o101);
|
||||
o218.appendChild(o140);
|
||||
o140.appendChild(o151);
|
||||
o104.appendChild(o179);
|
||||
o230=o120.ownerDocument.getElementById('ifr17164').contentDocument.createElementNS('http://www.w3.org/2000/svg','svg');;
|
||||
window.setTimeout('start_dataiframe14()',100);
|
||||
} function start_dataiframe14(){
|
||||
gc();fill();
|
||||
o140.appendChild(o230);
|
||||
o171.appendChild(o104);
|
||||
o159.appendChild(o217);
|
||||
o158.appendChild(o218);
|
||||
}
|
||||
window.setTimeout("start()",100);
|
||||
</script>
|
||||
|
@ -34,6 +34,8 @@ load 608295-1.html
|
||||
load 611927-1.svg
|
||||
load 615002-1.svg
|
||||
load 615872-1.svg
|
||||
load 641388-1.html
|
||||
load 641388-2.html
|
||||
load 650732-1.svg
|
||||
load 665334-1.svg
|
||||
load 669225-1.svg
|
||||
|
Loading…
x
Reference in New Issue
Block a user