Bug 1421561 - Use IgnoredErrorResult in TextEditRules::WillInsertText(); r=masayuki

MozReview-Commit-ID: 5LV5lVEWKO1

--HG--
extra : rebase_source : 75a434db4d01ce3e82f27ab73017ccc0653af08f
This commit is contained in:
Edgar Chen 2017-11-29 17:09:53 +08:00
parent e92f83050d
commit d9305463a9

View File

@ -785,7 +785,7 @@ TextEditRules::WillInsertText(EditAction aAction,
MOZ_ASSERT(!pointAfterStringInserted.GetChildAtOffset(),
"After inserting text into a text node, pointAfterStringInserted."
"GetChildAtOffset() should be nullptr");
ErrorResult error;
IgnoredErrorResult error;
aSelection->Collapse(pointAfterStringInserted, error);
if (error.Failed()) {
NS_WARNING("Failed to collapse selection after inserting string");