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

RESOLVED INVALID

Status

()

RESOLVED INVALID
5 years ago
5 years ago

People

(Reporter: mayhemer, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
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
(Reporter)

Comment 1

5 years ago
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
Last Resolved: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.