Closed Bug 917487 Opened 11 years ago Closed 11 years ago

Appcache data are note cleared on "webapps-clear-data" notification

Categories

(Core :: Networking: Cache, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mayhemer, Unassigned)

Details

During work on bug 917432 I found out that we don't delete appcache (offline) data when clearing apps data:

At [1] we must use |aPolicy| and not |nsICache::STORE_ANYWHERE|.

I'm curious how test_cache_jar.js can even work, but maybe I'm overlooking something...

[1] http://hg.mozilla.org/mozilla-central/annotate/9e9f74116749/netwerk/protocol/http/nsHttpHandler.cpp#l1739
No, there is no bug, typical confusion by the current cache APIs!

It's OK, the app cache backend has it's own "webapps-clear-data" hook at [1].  The handler code is that stupid that it tries to clear data at never used HTTP-offline client id.

[1] http://hg.mozilla.org/mozilla-central/annotate/289d0d34ded7/netwerk/cache/nsApplicationCacheService.cpp#l214

Closing as INVALID.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.