Index: third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp |
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp |
index 8e5b53d600ec95cd11616766f32c10a3ce7b6efa..79fc3a505f87005227f699e43e91cd7f4b41f5c6 100644 |
--- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp |
+++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp |
@@ -410,10 +410,11 @@ bool InsertListCommand::doApplyForSingleParagraph( |
// inside listNode because moveParagraphWithClones could have removed |
// them. |
if (rangeStartIsInList && newList) |
- currentSelection.setStart(newList, 0, IGNORE_EXCEPTION); |
- if (rangeEndIsInList && newList) |
+ currentSelection.setStart(newList, 0, IGNORE_EXCEPTION_FOR_TESTING); |
+ if (rangeEndIsInList && newList) { |
currentSelection.setEnd(newList, Position::lastOffsetInNode(newList), |
- IGNORE_EXCEPTION); |
+ IGNORE_EXCEPTION_FOR_TESTING); |
+ } |
setEndingSelection(SelectionInDOMTree::Builder() |
.collapse(Position::firstPositionInNode(newList)) |