part of fix for throbber, r=jefft,mscott 38598

This commit is contained in:
bienvenu%netscape.com 2000-06-27 23:54:57 +00:00
parent b9c1f9cd75
commit f637131411

View File

@ -113,27 +113,24 @@ nsMsgStatusFeedback::OnStateChange(nsIWebProgress* aWebProgress,
nsresult aStatus)
{
nsresult rv;
if (aProgressStateFlags & flag_is_network)
if (aProgressStateFlags & flag_start)
{
if (aProgressStateFlags & flag_start)
{
m_lastPercent = 0;
StartMeteors();
nsXPIDLString loadingDocument;
rv = mBundle->GetStringFromName(NS_ConvertASCIItoUCS2("documentLoading").GetUnicode(),
getter_Copies(loadingDocument));
if (NS_SUCCEEDED(rv))
ShowStatusString(loadingDocument);
}
else if (aProgressStateFlags & flag_stop)
{
StopMeteors();
nsXPIDLString documentDone;
rv = mBundle->GetStringFromName(NS_ConvertASCIItoUCS2("documentDone").GetUnicode(),
getter_Copies(documentDone));
if (NS_SUCCEEDED(rv))
ShowStatusString(documentDone);
}
m_lastPercent = 0;
StartMeteors();
nsXPIDLString loadingDocument;
rv = mBundle->GetStringFromName(NS_ConvertASCIItoUCS2("documentLoading").GetUnicode(),
getter_Copies(loadingDocument));
if (NS_SUCCEEDED(rv))
ShowStatusString(loadingDocument);
}
else if (aProgressStateFlags & flag_stop)
{
StopMeteors();
nsXPIDLString documentDone;
rv = mBundle->GetStringFromName(NS_ConvertASCIItoUCS2("documentDone").GetUnicode(),
getter_Copies(documentDone));
if (NS_SUCCEEDED(rv))
ShowStatusString(documentDone);
}
return NS_OK;