mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Work around a flaw in the doc-loader not handling a RemoveObserver call during an observer notification
This commit is contained in:
parent
8bf8ba207a
commit
dd815430d4
@ -864,9 +864,11 @@ void nsDocLoaderImpl::FireOnEndDocumentLoad(nsDocLoaderImpl* aLoadInitiator,
|
||||
for (index = 0; index < count; index++) {
|
||||
nsIDocumentLoaderObserver* observer = (nsIDocumentLoaderObserver*)
|
||||
mDocObservers.ElementAt(index);
|
||||
observer->OnEndDocumentLoad(aLoadInitiator,
|
||||
aDocChannel,
|
||||
aStatus, observer);
|
||||
if (observer) {
|
||||
observer->OnEndDocumentLoad(aLoadInitiator,
|
||||
aDocChannel,
|
||||
aStatus, observer);
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Next notify the parent...
|
||||
|
@ -864,9 +864,11 @@ void nsDocLoaderImpl::FireOnEndDocumentLoad(nsDocLoaderImpl* aLoadInitiator,
|
||||
for (index = 0; index < count; index++) {
|
||||
nsIDocumentLoaderObserver* observer = (nsIDocumentLoaderObserver*)
|
||||
mDocObservers.ElementAt(index);
|
||||
observer->OnEndDocumentLoad(aLoadInitiator,
|
||||
aDocChannel,
|
||||
aStatus, observer);
|
||||
if (observer) {
|
||||
observer->OnEndDocumentLoad(aLoadInitiator,
|
||||
aDocChannel,
|
||||
aStatus, observer);
|
||||
}
|
||||
}
|
||||
/*
|
||||
* Next notify the parent...
|
||||
|
Loading…
Reference in New Issue
Block a user