fixes bug 201295 "Changed toplevel images don't reload [file:// URLs]" r=biesi sr=pavlov

This commit is contained in:
darin%netscape.com 2003-04-10 01:01:31 +00:00
parent e3f678e96a
commit 4c694bf157

View File

@ -549,10 +549,10 @@ NS_IMETHODIMP imgLoader::LoadImageWithChannel(nsIChannel *channel, imgIDecoderOb
}
else if (RevalidateEntry(entry, requestFlags, bHasExpired)) {
nsCOMPtr<nsICachingChannel> cacheChan(do_QueryInterface(channel));
NS_ASSERTION(cacheChan, "Cache entry without a caching channel!");
if (cacheChan) {
cacheChan->IsFromCache(&bUseCacheCopy);
} else {
bUseCacheCopy = PR_FALSE;
}
}