Closed
Bug 473054
Opened 16 years ago
Closed 16 years ago
FF 3.1b2: Unable to clear chrome image cache
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: telega, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1b2) Gecko/20081201 Firefox/3.1b2 In Firefox 3.0.x I was using nsICacheService.createSession("image-chrome") session object to remove chrome images from cache. Since Firefox 3.1.x this doesn't work anymore. Could you advise - is this a bug? Or what should I use to remove chrome images from cache? Reproducible: Always Steps to Reproduce: 1. Execute the code listed in Additional Information below. Actual Results: Chrome image isn't removed from cache. Expected Results: Chrome image is removed from cache. var cacheSession = Components.classes["@mozilla.org/network/cache-service;1"] .getService(Components.interfaces.nsICacheService) .createSession("image-chrome", Components.interfaces.nsICache.STORE_ANYWHERE, false); try { var entry = cacheSession.openCacheEntry(imageURL, Components.interfaces.nsICache.ACCESS_READ, false); entry.doom(); } catch(e) {}
Updated•16 years ago
|
Component: Extension Compatibility → Networking: Cache
Product: Firefox → Core
QA Contact: extension.compatibility → networking.cache
Version: 3.1 Branch → 1.9.1 Branch
Comment 1•16 years ago
|
||
imagelib has a new disk cache implementation
Component: Networking: Cache → ImageLib
QA Contact: networking.cache → imagelib
Comment 2•16 years ago
|
||
Images aren't stored in the memory cache any more; instead, you can use imgICache::removeEntry(). imgICache is available from @mozilla.org/image/cache;1. Just call imgICache::removeEntry("chrome://path/to/image") and you'll be set. (This will also work in Firefox 3.0.)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•