Permalink
Browse files

Bug 713417 - Another crash test.

  • Loading branch information...
MatsPalmgren committed Dec 26, 2011
1 parent c264669 commit bfa30e56c5ad548d3de757df228551eaaf039ccb
Showing with 28 additions and 0 deletions.
  1. +26 −0 content/base/crashtests/713417-2.html
  2. +2 −0 content/base/crashtests/crashtests.list
@@ -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>
@@ -103,3 +103,5 @@ load 700090-2.html
load 700512.html
load xhr_html_nullresponse.html
load 709384.html
+load 713417.html
+load 713417-2.html

0 comments on commit bfa30e5

Please sign in to comment.