content/base/crashtests/827190.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <noframes dir=auto id=test4></noframes><vbox id=test5>K<csaction id=test3><script>
michael@0 2 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); }}
michael@0 3 function crash() {
michael@0 4 try { test1 = document.createElementNS("http://www.w3.org/2000/svg", "text"); } catch(e) {}
michael@0 5 try { test2 = test3.cloneNode(true); } catch(e) {}
michael@0 6 setTimeout("try { clear(); } catch(e) {}", 500);
michael@0 7 try { test1.appendChild(test5); } catch(e) {}
michael@0 8 try { test2.appendChild(test1); } catch(e) {}
michael@0 9 try { test4.appendChild(test2); } catch(e) {}
michael@0 10 try { test5.innerHTML = ""; } catch(e) {}
michael@0 11 }
michael@0 12 document.addEventListener("DOMContentLoaded", crash, false);
michael@0 13 </script>

mercurial