Bug 1489790 - Part 7: Remove the XPCOM component registration for @mozilla.org/editor/editingcontroller;1; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5362
This commit is contained in:
@@ -40,6 +40,7 @@
|
||||
#include "nsStyleConsts.h"
|
||||
#include "nsTextEditorState.h"
|
||||
#include "nsIController.h"
|
||||
#include "nsBaseCommandController.h"
|
||||
|
||||
static NS_DEFINE_CID(kXULControllersCID, NS_XULCONTROLLERS_CID);
|
||||
|
||||
@@ -638,9 +639,9 @@ HTMLTextAreaElement::GetControllers(ErrorResult& aError)
|
||||
|
||||
mControllers->AppendController(controller);
|
||||
|
||||
controller = do_CreateInstance("@mozilla.org/editor/editingcontroller;1", &rv);
|
||||
if (NS_FAILED(rv)) {
|
||||
aError.Throw(rv);
|
||||
controller = nsBaseCommandController::CreateEditingController();
|
||||
if (!controller) {
|
||||
aError.Throw(NS_ERROR_FAILURE);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user