Closed Bug 318391 Opened 20 years ago Closed 20 years ago

Add a way to purge the image cache

Categories

(Core :: Graphics: ImageLib, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: dougt, Assigned: dougt)

Details

Attachments

(1 file)

Attached patch v.1Splinter Review
Attachment #204585 - Flags: superreview?(darin)
Attachment #204585 - Flags: review?(pavlov)
The summary of this bug is fairly bogus since there is already ways to purge the image cache.
how?
Comment on attachment 204585 [details] [diff] [review] v.1 Hmm... not sure how I feel about this. The event name is very specific to the image cache, and yet the other event names are much more generic so as to apply to multiple observers. Here, there is only one observer of the image cache because there is only one image cache. Therefore, the observer service seems like the wrong way to build this API. One alternative is to pluralize the observer notification (something like "content-flush-image-caches"). Another approach would be to add an API on imgILoader.
Attachment #204585 - Flags: superreview?(darin) → superreview-
content-flush-image-caches? Would this imply the we would dump the network copy of an image?
(In reply to comment #3) > how? > nsCOMPtr<imgICache> c(do_GetService("@mozilla.org/image/cache;1")->ClearCache(PR_FALSE) (or true depending on what you want to do). See also: http://lxr.mozilla.org/seamonkey/source/modules/libpr0n/public/imgICache.idl#56
invalid
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Attachment #204585 - Flags: review?(pavlov) → review-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: