icecat: add release icecat-140.6.0-1gnu1 for aramo
This commit is contained in:
parent
92fef42cd6
commit
17ba0259bf
3382 changed files with 457689 additions and 569094 deletions
|
|
@ -168,11 +168,12 @@ nsresult TextEditor::Init(Document& aDocument, Element& aAnonymousDivElement,
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// We set mInitSucceeded here rather than at the end of the function,
|
||||
// We set the initialized state here rather than at the end of the function,
|
||||
// since InitEditorContentAndSelection() can perform some transactions
|
||||
// and can warn if mInitSucceeded is still false.
|
||||
MOZ_ASSERT(!mInitSucceeded, "TextEditor::Init() shouldn't be nested");
|
||||
mInitSucceeded = true;
|
||||
editActionData.OnEditorInitialized();
|
||||
|
||||
rv = InitEditorContentAndSelection();
|
||||
if (NS_FAILED(rv)) {
|
||||
|
|
@ -180,6 +181,7 @@ nsresult TextEditor::Init(Document& aDocument, Element& aAnonymousDivElement,
|
|||
// XXX Shouldn't we expose `NS_ERROR_EDITOR_DESTROYED` even though this
|
||||
// is a public method?
|
||||
mInitSucceeded = false;
|
||||
editActionData.OnEditorDestroy();
|
||||
return EditorBase::ToGenericNSResult(rv);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue