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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/execCommand/insertunorderedlist-crash-in-domsubtreemodified-event.html

Issue 1570733002: [Editing][BugFix] Check editability in InserListCommand::listifyParagraph (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <dl>
5 >
6 </dl>
7 <table>
8 <div id="log"></div>
9 <script>
10 document.addEventListener("DOMSubtreeModified", function (event) {
yosin_UTC9 2016/01/12 05:51:44 Can we repro this w/o mutation event handler?
11 document.execCommand('InsertUnorderedList');
yosin_UTC9 2016/01/12 05:51:44 It seems this execCommand apples to non-editable e
12 event.srcElement.contentEditable = "true";
13 });
14
15 test(function () {
16 document.execCommand("SelectAll");
17 window.getSelection().getRangeAt(0).insertNode(document.createElement("div") );
18 });
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698