Closed Bug 516599 Opened 15 years ago Closed 14 years ago

Exiting private browsing should clear the image cache

Categories

(Firefox :: Private Browsing, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 576621

People

(Reporter: Dolske, Assigned: Dolske)

Details

While working on an unrelated test, bholley and I realized that the image cache doesn't seem to get cleared when exiting private browsing (or by Clear Recent History). The image cache is a memory-only cache that isn't readily examined, so this isn't a critical problem, but it ought to be cleared anyway.

It can be easily cleared via imgICache, see clearImageCache() in modules/libpr0n/test/mochitest/imgutils.js for an example.

The image cache does observer a few notifications that might be indirectly fired, but it's probably best to do it directly. We should probably have the Clear Recent History nuke the cache too (or have the usual network cache clear it, so anything clearing "the cache" gets this too).
Assignee: nobody → dolske
Resolving this as a dupe of bug 576621, since that's where I'm posting the patch.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.