summaryrefslogtreecommitdiffstats
path: root/layout/xul/grid/crashtests/400790-1.xul
diff options
context:
space:
mode:
Diffstat (limited to 'layout/xul/grid/crashtests/400790-1.xul')
-rw-r--r--layout/xul/grid/crashtests/400790-1.xul20
1 files changed, 20 insertions, 0 deletions
diff --git a/layout/xul/grid/crashtests/400790-1.xul b/layout/xul/grid/crashtests/400790-1.xul
new file mode 100644
index 000000000..4de709428
--- /dev/null
+++ b/layout/xul/grid/crashtests/400790-1.xul
@@ -0,0 +1,20 @@
+<xul xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload="boom();">
+
+<script>
+
+function boom()
+{
+ var XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
+
+ var newListbox = document.createElementNS(XUL_NS, "listbox");
+ document.getElementById("listbox").appendChild(newListbox);
+
+ var newHbox = document.createElementNS(XUL_NS, "hbox");
+ document.getElementById("listitem").appendChild(newHbox);
+}
+
+</script>
+
+<listbox id="listbox"><listitem id="listitem" /></listbox>
+
+</xul>