diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /layout/xul/grid/crashtests/313173-1-inner.xul | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/xul/grid/crashtests/313173-1-inner.xul')
-rw-r--r-- | layout/xul/grid/crashtests/313173-1-inner.xul | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/layout/xul/grid/crashtests/313173-1-inner.xul b/layout/xul/grid/crashtests/313173-1-inner.xul new file mode 100644 index 000000000..284d6c1f1 --- /dev/null +++ b/layout/xul/grid/crashtests/313173-1-inner.xul @@ -0,0 +1,41 @@ +<?xml version="1.0"?> + +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> + +<window title="Testcase bug - Crash with evil xul testcase, using -moz-grid/table-caption" + xmlns:html="http://www.w3.org/1999/xhtml" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + +<grid flex="1"> + <columns> + <column flex="1"/> + </columns> + + <rows> + <row> + </row> + </rows> +</grid> + +<html:script> +function doe(){ +document.getElementsByTagName('columns')[0].style.display='table-caption'; +setTimeout(doe2,20); +} +function doe2(){ +document.getElementsByTagName('columns')[0].style.display='-moz-grid'; +} + +function clickit() { + var button = document.getElementById('button'); + var evt = document.createEvent("MouseEvents"); + evt.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null); + button.dispatchEvent(evt); +setTimeout('clickit();', 20); +} +window.addEventListener('load', clickit, false); + +</html:script> + <html:button id="button" onclick="doe()" label="click">Clicking this should not crash Mozilla</html:button> +</window> + |