Bug 1491561 follow-up: Add back Cu.createCommandParams() which was accidentally removed

This commit is contained in:
Ehsan Akhgari 2018-09-18 10:47:04 -04:00
parent 6fc40ffa3f
commit 5d33bd136d
2 changed files with 12 additions and 0 deletions

View File

@ -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();

View File

@ -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<nsICommandParams> commandParams = new nsCommandParams();
commandParams.forget(aCommandParams);
return NS_OK;
}
NS_IMETHODIMP
nsXPCComponents_Utils::CreateLoadContext(nsILoadContext** aLoadContext)
{