Bug 1488111 - Remove the XPCOM component registration for nsCommandManager; r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D4834
This commit is contained in:
@@ -145,7 +145,7 @@
|
||||
#include "nsIWritablePropertyBag2.h"
|
||||
#include "nsIWyciwygChannel.h"
|
||||
|
||||
#include "nsPICommandUpdater.h"
|
||||
#include "nsCommandManager.h"
|
||||
#include "nsPIDOMWindow.h"
|
||||
#include "nsPILoadGroupInternal.h"
|
||||
#include "nsPIWindowRoot.h"
|
||||
@@ -13285,11 +13285,7 @@ nsresult
|
||||
nsDocShell::EnsureCommandHandler()
|
||||
{
|
||||
if (!mCommandManager) {
|
||||
nsCOMPtr<nsPICommandUpdater> commandUpdater =
|
||||
do_CreateInstance("@mozilla.org/embedcomp/command-manager;1");
|
||||
if (!commandUpdater) {
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
nsCOMPtr<nsPICommandUpdater> commandUpdater = new nsCommandManager();
|
||||
|
||||
nsCOMPtr<nsPIDOMWindowOuter> domWindow = GetWindow();
|
||||
nsresult rv = commandUpdater->Init(domWindow);
|
||||
|
||||
Reference in New Issue
Block a user