Bug 1491019 - Remove the XPCOM component registration for nsXULControllers; r=baku

Differential Revision: https://phabricator.services.mozilla.com/D5774
This commit is contained in:
Ehsan Akhgari
2018-09-13 11:02:50 -04:00
parent d87455d60a
commit 798657ab57
8 changed files with 20 additions and 51 deletions

View File

@@ -41,8 +41,7 @@
#include "nsTextEditorState.h"
#include "nsIController.h"
#include "nsBaseCommandController.h"
static NS_DEFINE_CID(kXULControllersCID, NS_XULCONTROLLERS_CID);
#include "nsXULControllers.h"
#define NS_NO_CONTENT_DISPATCH (1 << 0)
@@ -624,10 +623,9 @@ HTMLTextAreaElement::GetControllers(ErrorResult& aError)
{
if (!mControllers)
{
nsresult rv;
mControllers = do_CreateInstance(kXULControllersCID, &rv);
if (NS_FAILED(rv)) {
aError.Throw(rv);
mControllers = NS_NewXULControllers();
if (!mControllers) {
aError.Throw(NS_ERROR_FAILURE);
return nullptr;
}