6 var lci
= Services
.loadContextInfo
.default;
8 // Open a pinned entry for write, write
12 Ci
.nsICacheStorage
.OPEN_TRUNCATE
,
14 new OpenCallback(NEW
| WAITFORWRITE
, "a1m", "a1d", function () {
15 // Now clear the disk storage, that should leave the pinned entry in the cache
16 var diskStorage
= getCacheStorage("disk", lci
);
17 diskStorage
.asyncEvictStorage(null);
19 // Open for read and check, it should still be there
23 Ci
.nsICacheStorage
.OPEN_NORMALLY
,
25 new OpenCallback(NORMAL
, "a1m", "a1d", function () {
26 // Now clear the pinning storage, entry should be gone
27 var pinningStorage
= getCacheStorage("pin", lci
);
28 pinningStorage
.asyncEvictStorage(null);
33 Ci
.nsICacheStorage
.OPEN_NORMALLY
,
35 new OpenCallback(NEW
, "", "", function () {