Bug 1317704 - Part 2. Add test. r?masayuki draft
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Thu, 15 Dec 2016 15:02:10 +0900
changeset 449825 6057059c0e33ec572ef0bad73c5fdb81ba83a8e0
parent 449824 f38ca4a9e53ab043326d35f214a268ff36fd55d8
child 539597 1fd9f5a5fd87fc804635e444198a5723df0c538a
push id38683
push userm_kato@ga2.so-net.ne.jp
push dateThu, 15 Dec 2016 06:07:26 +0000
reviewersmasayuki
bugs1317704
milestone53.0a1
Bug 1317704 - Part 2. Add test. r?masayuki MozReview-Commit-ID: AVOvEZ1sMVq
editor/libeditor/crashtests/1317704.html
editor/libeditor/crashtests/crashtests.list
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