зеркало из https://github.com/mozilla/gecko-dev.git
Removed over aggressive assert when the loadgroup listener factory does not exist
This commit is contained in:
Родитель
aebdc7d5fe
Коммит
672c0938ff
|
@ -174,7 +174,7 @@ nsCacheEntryChannel::AsyncRead(PRUint32 aStartPosition, PRInt32 aReadCount,
|
||||||
|
|
||||||
mCacheEntry->NoteAccess();
|
mCacheEntry->NoteAccess();
|
||||||
|
|
||||||
nsCOMPtr<nsIStreamListener> headListener;
|
nsCOMPtr<nsIStreamListener> headListener = aListener;
|
||||||
if (mLoadGroup) {
|
if (mLoadGroup) {
|
||||||
mLoadGroup->GetDefaultLoadAttributes(&mLoadAttributes);
|
mLoadGroup->GetDefaultLoadAttributes(&mLoadAttributes);
|
||||||
|
|
||||||
|
@ -186,12 +186,6 @@ nsCacheEntryChannel::AsyncRead(PRUint32 aStartPosition, PRInt32 aReadCount,
|
||||||
getter_AddRefs(headListener));
|
getter_AddRefs(headListener));
|
||||||
if (NS_FAILED(rv)) return rv;
|
if (NS_FAILED(rv)) return rv;
|
||||||
}
|
}
|
||||||
NS_ASSERTION(headListener, "Load group listener factory did not create listener");
|
|
||||||
if (!headListener)
|
|
||||||
headListener = aListener;
|
|
||||||
|
|
||||||
} else {
|
|
||||||
headListener = aListener;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CacheManagerStreamListener* cacheManagerStreamListener;
|
CacheManagerStreamListener* cacheManagerStreamListener;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче