layout/base/crashtests/311661-2.xul

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

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() {
michael@0 5 document.documentElement.getElementsByTagName('*')[1].style.display='table-row';
michael@0 6 setTimeout(doe2,20);
michael@0 7 }
michael@0 8 function doe2(){
michael@0 9 document.documentElement.getElementsByTagName('*')[1].style.display='';
michael@0 10 setTimeout(doe,20);
michael@0 11 }
michael@0 12 ]]></html:script>
michael@0 13 <button id="button" onclick="doe()" label="Mozilla should not crash, when clicking this button"/>
michael@0 14 <div style="display:table-row"/>
michael@0 15 <html:script>
michael@0 16 function clickbutton()
michael@0 17 {
michael@0 18 var ev = document.createEvent('MouseEvents');
michael@0 19 ev.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
michael@0 20 var button = document.getElementById('button');
michael@0 21 button.dispatchEvent(ev);
michael@0 22
michael@0 23 setTimeout(function() { document.documentElement.className = "" }, 500);
michael@0 24 }
michael@0 25 window.addEventListener("load", clickbutton, false);
michael@0 26 </html:script>
michael@0 27
michael@0 28 </window>

mercurial