Closed
Bug 318391
Opened 20 years ago
Closed 20 years ago
Add a way to purge the image cache
Categories
(Core :: Graphics: ImageLib, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: dougt, Assigned: dougt)
Details
Attachments
(1 file)
|
731 bytes,
patch
|
pavlov
:
review-
darin.moz
:
superreview-
|
Details | Diff | Splinter Review |
| Assignee | ||
Comment 1•20 years ago
|
||
Attachment #204585 -
Flags: superreview?(darin)
Attachment #204585 -
Flags: review?(pavlov)
Comment 2•20 years ago
|
||
The summary of this bug is fairly bogus since there is already ways to purge the image cache.
| Assignee | ||
Comment 3•20 years ago
|
||
how?
Comment 4•20 years ago
|
||
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-
| Assignee | ||
Comment 5•20 years ago
|
||
content-flush-image-caches? Would this imply the we would dump the network copy of an image?
Comment 6•20 years ago
|
||
(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
| Assignee | ||
Comment 7•20 years ago
|
||
invalid
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Updated•20 years ago
|
Attachment #204585 -
Flags: review?(pavlov) → review-
You need to log in
before you can comment on or make changes to this bug.
Description
•