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:
Ehsan Akhgari
2018-09-07 09:39:36 -04:00
parent 5e6db6fab9
commit 483cdb54e7
7 changed files with 33 additions and 40 deletions

View File

@@ -114,6 +114,7 @@
#include "nsIController.h"
#include "nsIMIMEInfo.h"
#include "nsFrameSelection.h"
#include "nsBaseCommandController.h"
// input type=date
#include "js/Date.h"
@@ -5814,10 +5815,9 @@ HTMLInputElement::GetControllers(ErrorResult& aRv)
mControllers->AppendController(controller);
controller = do_CreateInstance("@mozilla.org/editor/editingcontroller;1",
&rv);
if (NS_FAILED(rv)) {
aRv.Throw(rv);
controller = nsBaseCommandController::CreateEditingController();
if (!controller) {
aRv.Throw(NS_ERROR_FAILURE);
return nullptr;
}