Make sure we properly notify of window activity starting and stoping.

This commit is contained in:
tbogard%aol.net 2000-04-16 05:09:07 +00:00
parent 9d9f48f184
commit a1fc1e4925

View File

@ -92,7 +92,16 @@ NS_IMETHODIMP nsDSWebProgressListener::OnStatusChange(nsIChannel* aChannel,
//XXX Need to mask in flag_windowActivity when animation is occuring in the
// window
if(mDocShell)
{
if(aProgressStatusFlags & nsIWebProgress::flag_net_start)
aProgressStatusFlags |= nsIWebProgress::flag_win_start;
else if(aProgressStatusFlags & nsIWebProgress::flag_net_stop &&
PR_TRUE /*XXX Eventually check some flag to see if there is animation
going if there is don't add in the window stop flag*/)
aProgressStatusFlags |= nsIWebProgress::flag_win_stop;
mDocShell->FireOnStatusChange(aChannel, aProgressStatusFlags);
}
return NS_OK;
}