mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 432391 part 2. Hook up imgRequestProxy clones to the imgCacheValidator for the imgRequest as needed. r=joe
This commit is contained in:
parent
73f7dc58d1
commit
16b9f53a47
@ -52,6 +52,7 @@
|
||||
#include "Image.h"
|
||||
#include "ImageErrors.h"
|
||||
#include "ImageLogging.h"
|
||||
#include "imgLoader.h"
|
||||
|
||||
#include "nspr.h"
|
||||
|
||||
@ -534,6 +535,14 @@ NS_IMETHODIMP imgRequestProxy::Clone(imgIDecoderObserver* aObserver,
|
||||
// assumes that we don't. This will be fixed in bug 580466.
|
||||
clone->SyncNotifyListener();
|
||||
|
||||
// It's weird to defer notifications now that we just dispatched
|
||||
// them, but we need to do the latter, and imgCacheValidator demands
|
||||
// the former.
|
||||
if (mOwner && mOwner->mValidator) {
|
||||
clone->SetNotificationsDeferred(PR_TRUE);
|
||||
mOwner->mValidator->AddProxy(clone);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user