diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-02 15:26:16 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-02 15:26:16 +0100 |
commit | f0175fb7abd0aad3054236fb1a0cc430c6d05db9 (patch) | |
tree | d2c2abdec133cfb7cbb11b0843a6018678cd67cf /devtools/server | |
parent | 4240e91e328b12c1b7f47b813e20c5671f4d8593 (diff) | |
download | UXP-f0175fb7abd0aad3054236fb1a0cc430c6d05db9.tar UXP-f0175fb7abd0aad3054236fb1a0cc430c6d05db9.tar.gz UXP-f0175fb7abd0aad3054236fb1a0cc430c6d05db9.tar.lz UXP-f0175fb7abd0aad3054236fb1a0cc430c6d05db9.tar.xz UXP-f0175fb7abd0aad3054236fb1a0cc430c6d05db9.zip |
Bug 1321820: Storage Inspector fails with dom.caches.enabled=false
Issue #31
Diffstat (limited to 'devtools/server')
-rw-r--r-- | devtools/server/actors/storage.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/devtools/server/actors/storage.js b/devtools/server/actors/storage.js index 497051e57..6d069939d 100644 --- a/devtools/server/actors/storage.js +++ b/devtools/server/actors/storage.js @@ -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; }), |