Follow up fix to bug 516728. Fixes assertion description and removing an extra ws

This commit is contained in:
Doug Turner 2010-08-01 23:38:10 -07:00
Родитель b3d59190cc
Коммит b83811097b
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -1179,13 +1179,12 @@ History::RegisterVisitedCallback(nsIURI* aURI,
NS_ASSERTION(aURI, "Must pass a non-null URI!");
#ifdef MOZ_IPC
if (XRE_GetProcessType() == GeckoProcessType_Content) {
NS_PRECONDITION(aLink, "Must pass a non-null URI!");
NS_PRECONDITION(aLink, "Must pass a non-null Link!");
}
#else
NS_PRECONDITION(aLink, "Must pass a non-null URI!");
NS_PRECONDITION(aLink, "Must pass a non-null Link!");
#endif
// First, ensure that our hash table is setup.
if (!mObservers.IsInitialized()) {
NS_ENSURE_TRUE(mObservers.Init(), NS_ERROR_OUT_OF_MEMORY);