summaryrefslogtreecommitdiffstats
path: root/dom/base/crashtests/398088-1.xul
diff options
context:
space:
mode:
Diffstat (limited to 'dom/base/crashtests/398088-1.xul')
-rw-r--r--dom/base/crashtests/398088-1.xul23
1 files changed, 23 insertions, 0 deletions
diff --git a/dom/base/crashtests/398088-1.xul b/dom/base/crashtests/398088-1.xul
new file mode 100644
index 000000000..6548a11be
--- /dev/null
+++ b/dom/base/crashtests/398088-1.xul
@@ -0,0 +1,23 @@
+<window onload="boom();" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+
+<script>
+
+function boom()
+{
+ var p = document.getElementById("p");
+
+ document.addEventListener("DOMAttrModified", removeP, true);
+
+ p.removeAttribute("mode");
+
+ function removeP()
+ {
+ document.documentElement.removeChild(p);
+ }
+}
+
+</script>
+
+<progressmeter id="p" mode="determined" />
+
+</window>