Bug 1489790 - Part 8: Remove the XPCOM component registration for @mozilla.org/editor/editorcontroller;1; r=baku

Differential Revision: https://phabricator.services.mozilla.com/D5363
This commit is contained in:
Ehsan Akhgari
2018-09-06 23:59:57 -04:00
parent 483cdb54e7
commit 65bf89650c
6 changed files with 30 additions and 39 deletions

View File

@@ -5805,11 +5805,10 @@ HTMLInputElement::GetControllers(ErrorResult& aRv)
return nullptr;
}
nsCOMPtr<nsIController>
controller(do_CreateInstance("@mozilla.org/editor/editorcontroller;1",
&rv));
if (NS_FAILED(rv)) {
aRv.Throw(rv);
nsCOMPtr<nsIController> controller =
nsBaseCommandController::CreateEditorController();
if (!controller) {
aRv.Throw(NS_ERROR_FAILURE);
return nullptr;
}