Bug 1321820: Storage Inspector fails with dom.caches.enabled=false

Issue #31
This commit is contained in:
janekptacijarabaci 2018-03-02 15:26:16 +01:00 committed by Roy Tam
commit 555cdbdacb
5 changed files with 57 additions and 7 deletions

View file

@ -1187,6 +1187,11 @@ StorageActors.createActor({
// The |chrome| cache is the cache implicitely cached by the platform,
// hosting the source file of the service worker.
let { CacheStorage } = this.storageActor.window;
if (!CacheStorage) {
return [];
}
let cache = new CacheStorage("content", principal);
return cache;
}),