Test for bug 827190
authorSimon Montagu <smontagu@smontagu.org>
Sun, 13 Jan 2013 08:08:58 -0800
changeset 127348 4172406f5df4f186be4a24c3538cb61cbb04b310
parent 127347 563d11ca4f5249a4035a151ba575b8f3ec47de68
child 127349 2d7dc501efcdffc8164e4d1527ffc21d76006996
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs827190
milestone20.0a2
Test for bug 827190
content/base/crashtests/827190.html
content/base/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/content/base/crashtests/827190.html
@@ -0,0 +1,13 @@
+<noframes dir=auto id=test4></noframes><vbox id=test5>K<csaction id=test3><script>
+function reference(domNode) { this.domNode = domNode;} function walk(a, currentPrefix, index, domNode) { if(domNode == null) return; newPrefix = currentPrefix + "_" + index; walk(a, domNode.nextSibling); walk(a, domNode.firstChild); a[newPrefix] = new reference(domNode); } function clear() { var a = new Array(); walk(a, "", 0, document.documentElement); for(key in a) {a[key].domNode.parentNode.removeChild(a[key].domNode); }}
+function crash() {
+try { test1 = document.createElementNS("http://www.w3.org/2000/svg", "text"); } catch(e) {}
+try { test2 = test3.cloneNode(true); } catch(e) {}
+setTimeout("try { clear(); } catch(e) {}", 500);
+try { test1.appendChild(test5); } catch(e) {}
+try { test2.appendChild(test1); } catch(e) {}
+try { test4.appendChild(test2); } catch(e) {}
+try { test5.innerHTML = ""; } catch(e) {}
+}
+document.addEventListener("DOMContentLoaded", crash, false);
+</script>
\ No newline at end of file
--- a/content/base/crashtests/crashtests.list
+++ b/content/base/crashtests/crashtests.list
@@ -118,8 +118,9 @@ load 786854.html
 load xhr_empty_datauri.html
 load 815043.html
 load 815276.html
 load 815477.html
 load 815500.html
 load 816253.html
 load 822691.html
 load 822723.html
+load 827190.html