mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 08:18:41 +09:00
Bug 1321820: Storage Inspector fails with dom.caches.enabled=false
Issue #31
This commit is contained in:
parent
5d33400c5b
commit
555cdbdacb
5 changed files with 57 additions and 7 deletions
|
|
@ -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;
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue