Fixing bug 124252. Calling Init() from nsImageDocument::StartDocumentLoad() is pointless, Init() has already been called and any subsequent calls do nothing (but assert). r=jkeiser@iname.com, sr=vidur@netscape.com

This commit is contained in:
jst%netscape.com 2002-02-08 01:36:28 +00:00
Родитель 41aafee64d
Коммит 9a94e7a41c
1 изменённых файлов: 3 добавлений и 8 удалений

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

@ -268,14 +268,9 @@ nsImageDocument::StartDocumentLoad(const char* aCommand,
NS_ENSURE_ARG_POINTER(aContainer);
mContainer = dont_AddRef(NS_GetWeakReference(aContainer));
nsresult rv = Init();
if (NS_FAILED(rv) && rv != NS_ERROR_ALREADY_INITIALIZED) {
return rv;
}
rv = nsDocument::StartDocumentLoad(aCommand, aChannel, aLoadGroup,
aContainer, aDocListener, aReset, aSink);
nsresult rv = nsDocument::StartDocumentLoad(aCommand, aChannel, aLoadGroup,
aContainer, aDocListener, aReset,
aSink);
if (NS_FAILED(rv)) {
return rv;
}