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

@@ -115,6 +115,7 @@
#include "nsIMIMEInfo.h"
#include "nsFrameSelection.h"
#include "nsBaseCommandController.h"
#include "nsXULControllers.h"
// input type=date
#include "js/Date.h"
@@ -123,8 +124,6 @@ NS_IMPL_NS_NEW_HTML_ELEMENT_CHECK_PARSER(Input)
// XXX align=left, hspace, vspace, border? other nav4 attrs
static NS_DEFINE_CID(kXULControllersCID, NS_XULCONTROLLERS_CID);
namespace mozilla {
namespace dom {
@@ -5798,10 +5797,9 @@ HTMLInputElement::GetControllers(ErrorResult& aRv)
{
if (!mControllers)
{
nsresult rv;
mControllers = do_CreateInstance(kXULControllersCID, &rv);
if (NS_FAILED(rv)) {
aRv.Throw(rv);
mControllers = NS_NewXULControllers();
if (!mControllers) {
aRv.Throw(NS_ERROR_FAILURE);
return nullptr;
}