Bug 1491019 - Remove the XPCOM component registration for nsXULControllers; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5774
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user