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

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: Update Created 6 years, 10 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
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/insert-ordered-list-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Crash issue 344280</title>
5 <script src="../../resources/js-test.js"></script>
6 </head>
7
8 <body>
9 <script>
10 description('Should not crash if we load a test case from crbug.com/3442 80.');
11 window.jsTestIsAsync = true;
12
13 document.addEventListener("DOMContentLoaded", function () {
14 document.execCommand("SelectAll", false);
15 window.getSelection().deleteFromDocument();
16 }, true);
17
18 var count = 0;
19 document.addEventListener("DOMSubtreeModified", function () {
20 count++;
21 if (count < 3) {
22 var src = event.srcElement;
23 src.contentEditable = "true";
24 src.innerHTML = '<div></div>';
25 document.execCommand('InsertOrderedList', false, false);
26 } else if (count == 3) {
27 window.finishJSTest();
28 }
29 }, false);
30 </script>
31 <h5>
32 aa
33 <textarea></textarea>
34 </h5>
35 <dl>
36 aa
37 </dl>
38 </body>
39 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/execCommand/insert-ordered-list-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698