зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
41aafee64d
Коммит
9a94e7a41c
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче