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 | <?xml version="1.0"?> |
michael@0 | 2 | <window xmlns:html="http://www.w3.org/1999/xhtml" class="reftest-wait" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" title="Testcase bug 311661 - Evil xul testcase, using display:table-row causes crash [@ nsTableRowGroupFrame::GetFirstRow]"> |
michael@0 | 3 | <html:script><![CDATA[ |
michael@0 | 4 | function doe(i) { |
michael@0 | 5 | document.documentElement.getElementsByTagName('*')[i].style.display='table-row'; |
michael@0 | 6 | document.documentElement.getElementsByTagName('*')[i+1].style.display='table-row'; |
michael@0 | 7 | i+=1; |
michael@0 | 8 | setTimeout(doe2,20,i); |
michael@0 | 9 | } |
michael@0 | 10 | function doe2(i){ |
michael@0 | 11 | document.documentElement.getElementsByTagName('*')[i-1].style.display=''; |
michael@0 | 12 | if (i>1)i=1; |
michael@0 | 13 | setTimeout(doe,20,i); |
michael@0 | 14 | } |
michael@0 | 15 | ]]></html:script> |
michael@0 | 16 | <button id="button" onclick="doe(1)" label="Mozilla should not crash, when clicking this button"/> |
michael@0 | 17 | <script/> |
michael@0 | 18 | <html:script> |
michael@0 | 19 | function clickbutton() |
michael@0 | 20 | { |
michael@0 | 21 | var ev = document.createEvent('MouseEvents'); |
michael@0 | 22 | ev.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); |
michael@0 | 23 | var button = document.getElementById('button'); |
michael@0 | 24 | button.dispatchEvent(ev); |
michael@0 | 25 | |
michael@0 | 26 | setTimeout(function() { document.documentElement.className = "" }, 500); |
michael@0 | 27 | } |
michael@0 | 28 | window.addEventListener("load", clickbutton, false); |
michael@0 | 29 | </html:script> |
michael@0 | 30 | |
michael@0 | 31 | </window> |