зеркало из https://github.com/mozilla/gecko-dev.git
Warren's changes broke component creation for nsIMsgMailSession and nsIUrlListenerManager. Restore these so our code runs correctly.
This commit is contained in:
Родитель
6cea859f1f
Коммит
6022433002
|
@ -189,19 +189,23 @@ nsMsgFactory::CreateInstance(nsISupports *aOuter,
|
|||
{
|
||||
nsUrlListenerManager * listener = nsnull;
|
||||
listener = new nsUrlListenerManager();
|
||||
if (listener == nsnull)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
if (listener == nsnull)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
listener->QueryInterface(nsIUrlListenerManager::GetIID(), (void **) &inst);
|
||||
}
|
||||
else if (mClassID.Equals(kCMsgMailSessionCID))
|
||||
{
|
||||
nsMsgMailSession * session = new nsMsgMailSession();
|
||||
if (session == nsnull)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
if (session == nsnull)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
session->QueryInterface(nsIMsgMailSession::GetIID(), (void **) &inst);
|
||||
|
||||
}
|
||||
else if (mClassID.Equals(kCMsgAppCoreCID))
|
||||
{
|
||||
res = NS_NewMsgAppCore((nsIDOMMsgAppCore **)&inst);
|
||||
if (NS_FAILED(res)) return res;
|
||||
}
|
||||
else if (mClassID.Equals(kCMsgAppCoreCID)) {
|
||||
res = NS_NewMsgAppCore((nsIDOMMsgAppCore **)&inst);
|
||||
if (NS_FAILED(res)) return res;
|
||||
}
|
||||
|
||||
// End of checking the interface ID code....
|
||||
if (inst)
|
||||
|
|
Загрузка…
Ссылка в новой задаче