Bug 564702 Refresh attempted sends bogus state change notification r=biesi

This commit is contained in:
Neil Rashbrook 2010-05-28 10:08:24 +01:00
parent b311068e3b
commit 1dc1a9547e

View File

@ -1300,12 +1300,13 @@ void nsDocLoader::FireOnStateChange(nsIWebProgress *aProgress,
*/
nsCOMPtr<nsIWebProgressListener> listener;
PRInt32 count = mListenerInfoList.Count();
PRInt32 notifyMask = (aStateFlags >> 16) & nsIWebProgress::NOTIFY_STATE_ALL;
while (--count >= 0) {
nsListenerInfo *info;
info = static_cast<nsListenerInfo*>(mListenerInfoList.SafeElementAt(count));
if (!info || !(info->mNotifyMask & (aStateFlags >>16))) {
if (!info || !(info->mNotifyMask & notifyMask)) {
continue;
}