Bug 713417 - Another crash test.
authorMats Palmgren <matspal@gmail.com>
Mon, 26 Dec 2011 14:29:25 +0100
changeset 84586 4e7281c6c2e91816257d0765797b43b1287bf922
parent 84585 ae7fa68bf1c1dff90ab2a32d752d5b0012acc519
child 84587 f8c20866035f5694373f00009764b167b7a53a02
push id805
push userakeybl@mozilla.com
push dateWed, 01 Feb 2012 18:17:35 +0000
treeherdermozilla-aurora@6fb3bf232436 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs713417
milestone12.0a1
Bug 713417 - Another crash test.
content/base/crashtests/713417-2.html
content/base/crashtests/crashtests.list
new file mode 100644
--- /dev/null
+++ b/content/base/crashtests/713417-2.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script>
+
+function boom()
+{
+  var f = document.getElementById("f");
+  var w = f.contentWindow;
+  var d = w.document;
+  var range = d.createRange();
+  w.getSelection().removeAllRanges();
+  w.getSelection().addRange(range);
+  var r = d.documentElement;
+  d.removeChild(r);
+  w.getSelection().collapse(r,0);
+  document.adoptNode(r);
+  f.parentNode.removeChild(f);
+}
+
+</script>
+</head>
+<body onload="boom();">
+<iframe src="data:text/html,1" id="f"></iframe>
+</body>
+</html>
--- a/content/base/crashtests/crashtests.list
+++ b/content/base/crashtests/crashtests.list
@@ -98,8 +98,10 @@ load 679689-1.html
 load 682463.html
 load 693212.xhtml
 load 698974-1.html
 load 700090-1.html
 load 700090-2.html
 load 700512.html
 load xhr_html_nullresponse.html
 load 709384.html
+load 713417.html
+load 713417-2.html