Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | <html><head> |
michael@0 | 2 | <title>Testcase4 bug 309322 - Evil testcase using multiple display:table-caption causes crash</title> |
michael@0 | 3 | <style> |
michael@0 | 4 | *[toggle_style],*[toggle_style1],*[toggle_style2],*[toggle_style3],*[toggle_style4]{ |
michael@0 | 5 | display:table-caption; |
michael@0 | 6 | } |
michael@0 | 7 | </style> |
michael@0 | 8 | <script> |
michael@0 | 9 | function doe(i){ |
michael@0 | 10 | var x=document.body.getElementsByTagName('*'); |
michael@0 | 11 | var xl=x.length;i=i+1; |
michael@0 | 12 | x[i-1].removeAttribute('toggle_style'); |
michael@0 | 13 | x[i].setAttribute('toggle_style','toggle_style'); |
michael@0 | 14 | if ((i+1)<xl) {x[i+1].setAttribute('toggle_style1','toggle_style'); |
michael@0 | 15 | x[i].removeAttribute('toggle_style1'); |
michael@0 | 16 | } |
michael@0 | 17 | if ((i+2)<xl) {x[i+2].setAttribute('toggle_style2','toggle_style'); |
michael@0 | 18 | x[i+1].removeAttribute('toggle_style2'); |
michael@0 | 19 | } |
michael@0 | 20 | if ((i+3)<xl) {x[i+3].setAttribute('toggle_style3','toggle_style'); |
michael@0 | 21 | x[i+2].removeAttribute('toggle_style3'); |
michael@0 | 22 | } |
michael@0 | 23 | if ((i+4)<xl) {x[i+4].setAttribute('toggle_style4','toggle_style'); |
michael@0 | 24 | x[i+3].removeAttribute('toggle_style4'); |
michael@0 | 25 | } |
michael@0 | 26 | if ((i+4)==xl) { |
michael@0 | 27 | x[i+3].removeAttribute('toggle_style4'); |
michael@0 | 28 | } |
michael@0 | 29 | if ((i+3)==xl) { |
michael@0 | 30 | x[i+2].removeAttribute('toggle_style3'); |
michael@0 | 31 | } |
michael@0 | 32 | if ((i+2)==xl) { |
michael@0 | 33 | x[i+1].removeAttribute('toggle_style2'); |
michael@0 | 34 | } |
michael@0 | 35 | if ((i+1)==xl) { |
michael@0 | 36 | x[i].removeAttribute('toggle_style1'); |
michael@0 | 37 | } |
michael@0 | 38 | setTimeout(doe,20,i); |
michael@0 | 39 | } |
michael@0 | 40 | |
michael@0 | 41 | |
michael@0 | 42 | </script></head><body onload="doe(3)"> |
michael@0 | 43 | <button onclick="doe(3)">Clicking on this button and then closing this tab/window should not crash Mozilla</button> |
michael@0 | 44 | <table><tbody><tr><td> |
michael@0 | 45 | <span><br></span> |
michael@0 | 46 | <a href="#"><img src="https://bugzilla.mozilla.org/attachment.cgi?id=165273"></a> |
michael@0 | 47 | </td></tr></tbody></table> |
michael@0 | 48 | </body></html> |