зеркало из https://github.com/mozilla/gecko-dev.git
Fix for #80778 - ASSERTION on startup: nsAppStartupNotifier.cpp
r/sr=alecf
This commit is contained in:
Родитель
190b061f3f
Коммит
efc3872feb
|
@ -89,13 +89,19 @@ NS_IMETHODIMP nsAppStartupNotifier::Observe(nsISupports *aSubject, const PRUnich
|
|||
else
|
||||
startupObserver = do_CreateInstance(contractId, &rv);
|
||||
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "cannot create startup observer!\n");
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
rv = startupObserver->Observe(nsnull, aTopic, nsnull);
|
||||
|
||||
// mainly for debugging if you want to know if your observer worked.
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "Startup Observer failed!\n");
|
||||
}
|
||||
else {
|
||||
#ifdef NS_DEBUG
|
||||
nsCAutoString warnStr("Cannot create startup observer : ");
|
||||
warnStr += contractId.get();
|
||||
NS_WARNING(warnStr.get());
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче