mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
part of fix for throbber, r=jefft,mscott 38598
This commit is contained in:
parent
b9c1f9cd75
commit
f637131411
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user