Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <script> |
michael@0 | 2 | function gc() { |
michael@0 | 3 | var evt = document.createEvent("Events"); |
michael@0 | 4 | evt.initEvent("please-gc", true, false); |
michael@0 | 5 | document.dispatchEvent(evt); |
michael@0 | 6 | } |
michael@0 | 7 | var ar =new Array(100000); |
michael@0 | 8 | function fill() { |
michael@0 | 9 | var s = unescape("%u0000%u0000%u3030%u3030"); |
michael@0 | 10 | while(s.length < 0x40000) { |
michael@0 | 11 | for(var x=0; x<100; x++) ar.push(s+s); |
michael@0 | 12 | s+=s; |
michael@0 | 13 | } |
michael@0 | 14 | } |
michael@0 | 15 | |
michael@0 | 16 | |
michael@0 | 17 | function start(){ |
michael@0 | 18 | tmp = document.createElement('iframe'); 'ifr16727'; |
michael@0 | 19 | document.documentElement.appendChild(tmp); |
michael@0 | 20 | window.setTimeout('start_dataiframe0()',100); |
michael@0 | 21 | } function start_dataiframe0(){ |
michael@0 | 22 | o20=document.createElement('iframe'); |
michael@0 | 23 | tmp.id = 'ifr4446';; |
michael@0 | 24 | o68=o20; |
michael@0 | 25 | o101=document.getElementById('ifr4446').contentDocument.createElement('thead');; |
michael@0 | 26 | tmp.src="data:text/html," + escape("<html id='element0'><noscript id='element1'></html>"); |
michael@0 | 27 | tmp.id = 'ifr49879'; |
michael@0 | 28 | window.setTimeout('start_dataiframe6()',100); |
michael@0 | 29 | } function start_dataiframe6(){ |
michael@0 | 30 | o104=document.getElementById('ifr49879').contentDocument.getElementById('element0');; |
michael@0 | 31 | o105=document.getElementById('ifr49879').contentDocument.getElementById('element1');; |
michael@0 | 32 | o120=document.getElementById('ifr49879').contentDocument.createElement('figure');; |
michael@0 | 33 | o105.appendChild(o120); |
michael@0 | 34 | o122=o105.lastElementChild; |
michael@0 | 35 | o140=document.getElementById('ifr49879').contentDocument.createElement('style');; |
michael@0 | 36 | o141=document.getElementById('ifr49879').contentDocument.createElementNS('http://www.w3.org/2000/svg','animate');; |
michael@0 | 37 | o151=o141.cloneNode(true);; |
michael@0 | 38 | tmp = document.createElement('iframe'); |
michael@0 | 39 | tmp.src='data:text/html,%3Cform%20style%3B%27%20id%3D%27element3%27%3E%20%3Caside%20style%20id%3D%27element4%27%%3E'; |
michael@0 | 40 | tmp.id = 'ifr13645'; |
michael@0 | 41 | document.documentElement.appendChild(tmp); |
michael@0 | 42 | window.setTimeout('start_dataiframe8()',100); |
michael@0 | 43 | } function start_dataiframe8(){ |
michael@0 | 44 | o154=document.getElementById('ifr13645').contentDocument.documentElement;; |
michael@0 | 45 | o158=document.getElementById('ifr13645').contentDocument.getElementById('element3');; |
michael@0 | 46 | o159=document.getElementById('ifr13645').contentDocument.getElementById('element4');; |
michael@0 | 47 | tmp.id = 'ifr17164'; |
michael@0 | 48 | o120.ownerDocument.documentElement.appendChild(tmp); |
michael@0 | 49 | o171=o120.ownerDocument.getElementById('ifr17164').contentDocument.documentElement;; |
michael@0 | 50 | tmp = o158.ownerDocument.createElement('iframe'); |
michael@0 | 51 | o101.appendChild(o151); |
michael@0 | 52 | o122.appendChild(o154); |
michael@0 | 53 | o68.appendChild(o171); |
michael@0 | 54 | o179=document.createElement('tbody');; |
michael@0 | 55 | o154.addEventListener('DOMNodeRemoved',function (event) { gc(); },false); |
michael@0 | 56 | 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'; |
michael@0 | 57 | tmp.id = 'ifr35960'; |
michael@0 | 58 | o154.ownerDocument.documentElement.appendChild(tmp); |
michael@0 | 59 | window.setTimeout('start_dataiframe13()',100); |
michael@0 | 60 | } function start_dataiframe13(){ |
michael@0 | 61 | o217=o154.ownerDocument.getElementById('ifr35960').contentDocument.documentElement;; |
michael@0 | 62 | o218=o154.ownerDocument.getElementById('ifr35960').contentDocument.getElementById('element0');; |
michael@0 | 63 | o223=o154.ownerDocument.getElementById('ifr35960').contentDocument.getElementById('element5');; |
michael@0 | 64 | o223.appendChild(o101); |
michael@0 | 65 | o218.appendChild(o140); |
michael@0 | 66 | o140.appendChild(o151); |
michael@0 | 67 | o104.appendChild(o179); |
michael@0 | 68 | o230=o120.ownerDocument.getElementById('ifr17164').contentDocument.createElementNS('http://www.w3.org/2000/svg','svg');; |
michael@0 | 69 | window.setTimeout('start_dataiframe14()',100); |
michael@0 | 70 | } function start_dataiframe14(){ |
michael@0 | 71 | gc();fill(); |
michael@0 | 72 | o140.appendChild(o230); |
michael@0 | 73 | o171.appendChild(o104); |
michael@0 | 74 | o159.appendChild(o217); |
michael@0 | 75 | o158.appendChild(o218); |
michael@0 | 76 | } |
michael@0 | 77 | window.setTimeout("start()",100); |
michael@0 | 78 | </script> |
michael@0 | 79 |