summaryrefslogtreecommitdiffstats
path: root/devtools/client/storage/test/head.js
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-02 15:26:16 +0100
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-03-02 15:26:16 +0100
commitf0175fb7abd0aad3054236fb1a0cc430c6d05db9 (patch)
treed2c2abdec133cfb7cbb11b0843a6018678cd67cf /devtools/client/storage/test/head.js
parent4240e91e328b12c1b7f47b813e20c5671f4d8593 (diff)
downloadUXP-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/client/storage/test/head.js')
-rw-r--r--devtools/client/storage/test/head.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/devtools/client/storage/test/head.js b/devtools/client/storage/test/head.js
index 0d7d13e17..07a66120e 100644
--- a/devtools/client/storage/test/head.js
+++ b/devtools/client/storage/test/head.js
@@ -15,6 +15,7 @@ Services.scriptloader.loadSubScript(
const {TableWidget} = require("devtools/client/shared/widgets/TableWidget");
const SPLIT_CONSOLE_PREF = "devtools.toolbox.splitconsoleEnabled";
const STORAGE_PREF = "devtools.storage.enabled";
+const DOM_CACHE = "dom.caches.enabled";
const DUMPEMIT_PREF = "devtools.dump.emit";
const DEBUGGERLOG_PREF = "devtools.debugger.log";
// Allows Cache API to be working on usage `http` test page
@@ -38,11 +39,12 @@ Services.prefs.setBoolPref(STORAGE_PREF, true);
Services.prefs.setBoolPref(CACHES_ON_HTTP_PREF, true);
registerCleanupFunction(() => {
gToolbox = gPanelWindow = gWindow = gUI = null;
- Services.prefs.clearUserPref(STORAGE_PREF);
- Services.prefs.clearUserPref(SPLIT_CONSOLE_PREF);
- Services.prefs.clearUserPref(DUMPEMIT_PREF);
- Services.prefs.clearUserPref(DEBUGGERLOG_PREF);
Services.prefs.clearUserPref(CACHES_ON_HTTP_PREF);
+ Services.prefs.clearUserPref(DEBUGGERLOG_PREF);
+ Services.prefs.clearUserPref(DOM_CACHE);
+ Services.prefs.clearUserPref(DUMPEMIT_PREF);
+ Services.prefs.clearUserPref(SPLIT_CONSOLE_PREF);
+ Services.prefs.clearUserPref(STORAGE_PREF);
});
/**