From 63a7c915ff2779a96c246068008334338a5252cb Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Mon, 9 Oct 2017 21:33:53 -0700 Subject: [PATCH] Backed out changeset 8cce0046e302 (bug 1406482) for mozilla::EditorBase::InsertTextImpl crashes MozReview-Commit-ID: G9jW217fO0v --- editor/libeditor/EditorBase.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/editor/libeditor/EditorBase.cpp b/editor/libeditor/EditorBase.cpp index 98234371db7c..7f5b8b6c964d 100644 --- a/editor/libeditor/EditorBase.cpp +++ b/editor/libeditor/EditorBase.cpp @@ -2503,8 +2503,6 @@ EditorBase::InsertTextImpl(const nsAString& aStringToInsert, nsCOMPtr node = *aInOutNode; int32_t offset = *aInOutOffset; - MOZ_ASSERT(node->GetChildAt(offset) == aChildAtOffset); - // In some cases, the node may be the anonymous div elemnt or a mozBR // element. Let's try to look for better insertion point in the nearest // text node if there is.