Bug 1317704 - Part 2. Add test. r?masayuki
MozReview-Commit-ID: AVOvEZ1sMVq
new file mode 100644
--- /dev/null
+++ b/editor/libeditor/crashtests/1317704.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<script>
+addEventListener('DOMContentLoaded', function(){
+ document.documentElement.className = 'lizard';
+ setTimeout(function(){
+ document.execCommand('selectAll', false, null);
+ document.designMode = 'on';
+ document.execCommand('removeformat', false, null);
+ }, 0);
+});
+</script>
+<style>
+.lizard{
+ -webkit-user-select:all;
+}
+*{
+ position:fixed;
+ display:table-column;
+}
+</style>
+</head>
+<body>
+<span>
+<span contenteditable>
+<span class=lizard></span>
+<span class=lizard></span>
+<span />
+</span>
+</span>
+</span>
+</span>
+</body>
+</html>
--- a/editor/libeditor/crashtests/crashtests.list
+++ b/editor/libeditor/crashtests/crashtests.list
@@ -64,9 +64,10 @@ needs-focus load 793866.html
load 1057677.html
needs-focus load 1128787.html
load 1134545.html
load 1158452.html
load 1158651.html
load 1244894.xhtml
load 1264921.html
load 1272490.html
+load 1317704.html
load 1317718.html