mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
bug 343107 Make sure to always fire STATE_START before STATE_STOP
patch by Dorian <boissomag@free.fr> r=biesi sr=darin
This commit is contained in:
parent
3356823135
commit
37a94af104
@ -2139,6 +2139,9 @@ nsresult nsExternalAppHandler::CreateProgressListener()
|
||||
if (NS_SUCCEEDED(rv))
|
||||
InitializeDownload(tr);
|
||||
|
||||
if (tr)
|
||||
tr->OnStateChange(nsnull, mRequest, nsIWebProgressListener::STATE_START, NS_OK);
|
||||
|
||||
// note we might not have a listener here if the QI() failed, or if
|
||||
// there is no nsITransfer object, but we still call
|
||||
// SetWebProgressListener() to make sure our progress state is sane
|
||||
@ -2147,9 +2150,6 @@ nsresult nsExternalAppHandler::CreateProgressListener()
|
||||
// OnStopRequest.
|
||||
SetWebProgressListener(tr);
|
||||
|
||||
if (tr)
|
||||
tr->OnStateChange(nsnull, mRequest, nsIWebProgressListener::STATE_START, NS_OK);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user