Bug 490949 - Take into account the load flags of the image's load group when checking whether we're bypassing the cache. r=vlad

This commit is contained in:
Joe Drew 2009-05-11 15:15:36 -04:00
parent 4a54908c46
commit 26ec677495

View File

@ -1215,7 +1215,7 @@ NS_IMETHODIMP imgLoader::LoadImage(nsIURI *aURI,
// If we're bypassing the cache, we are guaranteed to want a new cache entry,
// since we're going to do a new load.
if (aLoadFlags & nsIRequest::LOAD_BYPASS_CACHE) {
if (requestFlags & nsIRequest::LOAD_BYPASS_CACHE) {
RemoveFromCache(aURI);
} else {
// Look in the cache for our URI, and then validate it.