mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 564702 Refresh attempted sends bogus state change notification r=biesi
This commit is contained in:
parent
b311068e3b
commit
1dc1a9547e
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user