diff --git a/js/xpconnect/idl/xpccomponents.idl b/js/xpconnect/idl/xpccomponents.idl index c9cdf0756940..29a82b9efe3f 100644 --- a/js/xpconnect/idl/xpccomponents.idl +++ b/js/xpconnect/idl/xpccomponents.idl @@ -727,6 +727,9 @@ interface nsIXPCComponents_Utils : nsISupports /* Create a commandline object. */ nsISupports createCommandLine(); + /* Create a command params object. */ + nsICommandParams createCommandParams(); + /* Create a loadcontext object. */ nsILoadContext createLoadContext(); diff --git a/js/xpconnect/src/XPCComponents.cpp b/js/xpconnect/src/XPCComponents.cpp index 789437de14e4..391034a1576b 100644 --- a/js/xpconnect/src/XPCComponents.cpp +++ b/js/xpconnect/src/XPCComponents.cpp @@ -3233,6 +3233,15 @@ nsXPCComponents_Utils::CreateCommandLine(nsISupports** aCommandLine) return NS_OK; } +NS_IMETHODIMP +nsXPCComponents_Utils::CreateCommandParams(nsICommandParams** aCommandParams) +{ + NS_ENSURE_ARG_POINTER(aCommandParams); + nsCOMPtr commandParams = new nsCommandParams(); + commandParams.forget(aCommandParams); + return NS_OK; +} + NS_IMETHODIMP nsXPCComponents_Utils::CreateLoadContext(nsILoadContext** aLoadContext) {