Bug 1317704 - Part 2. Add test. r=masayuki a=test-only
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Thu, 15 Dec 2016 15:02:10 +0900
changeset 353927 5aee8dff330f19c9a27b0114371d2c09b2a65d93
parent 353926 2332cedca400d8ed64580d90222c74f0d482d90e
child 353928 17ac9bf7648b299461303f5c28bababa76764889
push id6839
push usercbook@mozilla.com
push dateMon, 30 Jan 2017 14:41:09 +0000
treeherdermozilla-esr52@0f54c5ef73d6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmasayuki, test-only
bugs1317704
milestone52.0
Bug 1317704 - Part 2. Add test. r=masayuki a=test-only 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
@@ -63,8 +63,9 @@ load 776323.html
 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 1272490.html
+load 1317704.html