1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/tests/crashtests/358732-2.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,94 @@ 1.4 +<svg xmlns="http://www.w3.org/2000/svg" 1.5 + xmlns:html="http://www.w3.org/1999/xhtml" 1.6 + xmlns:mathml="http://www.w3.org/1998/Math/MathML" 1.7 + xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 1.8 + xmlns:svg="http://www.w3.org/2000/svg" 1.9 + xmlns:xforms="http://www.w3.org/2002/xforms">ع<svg:foreignObject x="0" y="0" width="100%" height="100%"></svg:foreignObject> 1.10 +<html:script><![CDATA[ 1.11 +/*template*/ 1.12 +var doc = document; 1.13 +if (document.getElementById('content')) 1.14 + doc = document.getElementById('content').contentDocument; 1.15 + 1.16 +function addfirstletter(){ 1.17 +var x=doc.createElementNS('http://www.w3.org/1999/xhtml','style'); 1.18 +x.innerHTML='\ 1.19 +*::first-letter {float: right; text-transform: uppercase; background-color:red; font-size:600%;}\ 1.20 +'; 1.21 +doc.documentElement.appendChild(x); 1.22 +} 1.23 + 1.24 +setTimeout(addfirstletter,200); 1.25 + 1.26 +/*template*/ 1.27 + 1.28 +/*template*/ 1.29 +var doc = document; 1.30 +if (document.getElementById('content')) 1.31 + doc = document.getElementById('content').contentDocument; 1.32 + 1.33 +function addfirstline(){ 1.34 +var x=doc.createElementNS('http://www.w3.org/1999/xhtml','style'); 1.35 +x.innerHTML='\ 1.36 +*::first-line { text-transform: uppercase; background-color:green; font-size:110%; height: 110%;}\ 1.37 +*::after { content:"anonymous text"; float:right;border:3px solid black;text-transform: uppercase;height: 90%;}\ 1.38 +*::before { content:"before text"; float:right;border:3px solid black;font-size: 10px;width:80%;}\ 1.39 +'; 1.40 +doc.documentElement.appendChild(x); 1.41 +} 1.42 +setTimeout(addfirstline,200); 1.43 + 1.44 +/*template*/ 1.45 +/*template*/ 1.46 +var doc = document; 1.47 +if (document.getElementById('content')) 1.48 + doc = document.getElementById('content').contentDocument; 1.49 + 1.50 +var timers=0; 1.51 +function doe(aObj, aNested, aCurrentTimer){ 1.52 +var temp =0; 1.53 +for (var i in aObj) { 1.54 +try { 1.55 +if (i == 'ordinal') 1.56 + continue; 1.57 +if (typeof aObj[i] == 'object') { 1.58 + if (aNested >= 1000 || aObj[i] == window.location || aOb[i] == doc.documentElement.boxObject) 1.59 + continue; 1.60 + setTimeout(doe,500, aObj[i], ++aNested, timers); 1.61 + timers++; 1.62 + if (aOb[i] == doc.documentElement.boxObject.firstChild) { 1.63 + alert(i); 1.64 + continue; 1.65 + }; 1.66 +} 1.67 +if (i == 'textContent' || i == 'innerHTML') 1.68 + continue; 1.69 +} 1.70 +catch(e){} 1.71 +try { 1.72 + //if (temp == 68 && aNested == 21 && aCurrentTimer >= 116) { 1.73 + // alert(i + '-'+ aObj[i]); 1.74 + // return; 1.75 + // } 1.76 + 1.77 +if (typeof aObj[i] == 'function') { 1.78 +if (i =='removeChild' || i == 'getBoxObjectFor' || i == 'enableRollup') 1.79 +aObj[i](doc.documentElement); 1.80 +} 1.81 +else { 1.82 + aObj[i]= 'on'; 1.83 +} 1.84 + temp+=1; 1.85 +} 1.86 +catch (e) { 1.87 + 1.88 +} 1.89 +} 1.90 +} 1.91 + 1.92 +setTimeout(doe,0, doc.documentElement, 300); 1.93 + 1.94 +/*template*/ 1.95 + 1.96 +]]></html:script> 1.97 +</svg> 1.98 \ No newline at end of file