Fix bug 110405. Removing anachronistic assertion, added condition to respect STORE_ON_DISK policy. Changed fav icon cache policy to STORE_ANYWHERE. r/sr = darin, hyatt, sfraser.

This commit is contained in:
gordon%netscape.com 2001-11-29 23:04:58 +00:00
parent 190a0000f7
commit 8b769b6c5b
2 changed files with 2 additions and 4 deletions

View File

@ -935,9 +935,7 @@ nsCacheService::EnsureEntryHasDevice(nsCacheEntry * entry)
}
// if we can't use mDiskDevice, try mMemoryDevice
if (!device && mEnableMemoryDevice) {
NS_ASSERTION(entry->IsAllowedInMemory(), "oops.. bad flags");
if (!device && mEnableMemoryDevice && entry->IsAllowedInMemory()) {
entry->MarkBinding(); // XXX
rv = mMemoryDevice->BindEntry(entry);
entry->ClearBinding(); // XXX

View File

@ -276,7 +276,7 @@
var iconURL = this.buildFavIconString(aURI);
if (!this.mMissedIconCache) {
var cacheService = Components.classes['@mozilla.org/network/cache-service;1'].getService(Components.interfaces.nsICacheService);
this.mMissedIconCache = cacheService.createSession("MissedIconCache", Components.interfaces.nsICache.STORE_ON_DISK, true);
this.mMissedIconCache = cacheService.createSession("MissedIconCache", Components.interfaces.nsICache.STORE_ANYWHERE, true);
if (!this.mMissedIconCache)
return;
}