summaryrefslogtreecommitdiffstats
path: root/dom/svg/crashtests/369291-1.svg
diff options
context:
space:
mode:
Diffstat (limited to 'dom/svg/crashtests/369291-1.svg')
-rw-r--r--dom/svg/crashtests/369291-1.svg22
1 files changed, 22 insertions, 0 deletions
diff --git a/dom/svg/crashtests/369291-1.svg b/dom/svg/crashtests/369291-1.svg
new file mode 100644
index 000000000..222d0c2ac
--- /dev/null
+++ b/dom/svg/crashtests/369291-1.svg
@@ -0,0 +1,22 @@
+<svg xmlns="http://www.w3.org/2000/svg"
+ xmlns:html="http://www.w3.org/1999/xhtml"
+ onload="setTimeout(boom, 30);"
+ class="reftest-wait">
+
+<html:script>
+
+function boom()
+{
+ try {
+ document.getElementById("defs").getBBox();
+ } catch(e) {
+ // getBBox is expected to throw, because defs is not displayed.
+ document.documentElement.removeAttribute("class");
+ }
+}
+
+</html:script>
+
+<defs id="defs" />
+
+</svg>