summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/716456-1.html
diff options
context:
space:
mode:
Diffstat (limited to 'editor/libeditor/crashtests/716456-1.html')
-rw-r--r--editor/libeditor/crashtests/716456-1.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/editor/libeditor/crashtests/716456-1.html b/editor/libeditor/crashtests/716456-1.html
new file mode 100644
index 000000000..a5ef5a2cc
--- /dev/null
+++ b/editor/libeditor/crashtests/716456-1.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<head>
+<script>
+
+function boom()
+{
+ var div = document.querySelector("div");
+ div.contentEditable = "true";
+ div.focus();
+
+ var r = document.documentElement;
+ document["removeChild"](r);
+ document["appendChild"](r);
+
+ setTimeout(function() {
+ getSelection().collapse(div, 0);
+ document.execCommand("inserthtml", false, "a");
+ setTimeout(function() {
+ document.documentElement.removeAttribute("class");
+ }, 0);
+ }, 0);
+}
+
+</script>
+</head>
+
+<body onload="boom();"><div></div></body>
+</html>