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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user