summaryrefslogtreecommitdiffstats
path: root/layout/xul/grid/crashtests/311710-1.xul
diff options
context:
space:
mode:
Diffstat (limited to 'layout/xul/grid/crashtests/311710-1.xul')
-rw-r--r--layout/xul/grid/crashtests/311710-1.xul22
1 files changed, 22 insertions, 0 deletions
diff --git a/layout/xul/grid/crashtests/311710-1.xul b/layout/xul/grid/crashtests/311710-1.xul
new file mode 100644
index 000000000..403b267e9
--- /dev/null
+++ b/layout/xul/grid/crashtests/311710-1.xul
@@ -0,0 +1,22 @@
+<window title="Testcase bug 311710 - Evil xul testcase, using display:-moz-grid-group causes crash [@ nsGridRow::IsCollapsed]"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml">
+<script type="application/x-javascript">
+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);
+}
+window.addEventListener('load', clickit, false);
+</script>
+
+ <grid>
+ <rows>
+ <row>
+ <separator/>
+ </row>
+ </rows>
+ </grid>
+<button id="button" onclick="document.getElementsByTagName('row')[0].style.display='-moz-grid-group'" label="Mozilla should not crash, when clicking this button"/>
+</window>