Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: LayoutTests/editing/execCommand/insert-ordered-list-crash.html

Issue 181283002: Fixing a crash in InsertListCommand. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1
2 <body>
3 <h5>
4 aa
5 <textarea></textarea>
6 </h5>
7 <dl>
8 aa
9 </dl>
10 </body>
11
12 <script>
Yuta Kitamura 2014/02/26 10:41:16 Technically, <script> should not appear after <bod
yoichio 2014/02/27 04:00:03 Done.
13 document.addEventListener("DOMContentLoaded", function () {
Yuta Kitamura 2014/02/26 10:41:16 You need to tell the layout test harness that this
yoichio 2014/02/27 04:00:03 Done.
14 var oSelection = window.getSelection();
Yuta Kitamura 2014/02/26 10:41:16 nit: "oSelection" is awkward naming convention and
yoichio 2014/02/27 04:00:03 Done.
15 document.execCommand("SelectAll", false);
16 oSelection.deleteFromDocument();
17 }, true);
18
19 var count = 0;
20 document.addEventListener("DOMSubtreeModified", function () {
21 count++;
22 if (count < 3) {
23 var oElement = event.srcElement;
24 oElement.contentEditable = "true";
25 oElement.innerHTML = '<div></div>';
26 document.execCommand('InsertOrderedList', false, false);
27 }
28 }, false);
29 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/insert-ordered-list-crash-expected.txt » ('j') | Source/core/dom/Range.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698