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

@ -1,4 +1,4 @@
<!DOCTYPE HTML>
<!DOCTYPE HTML>
<html>
<!--
Bug 970517 - Storage inspector front end - tests
@ -110,14 +110,19 @@ let cacheGenerator = function*() {
window.setup = function*() {
yield idbGenerator();
yield cacheGenerator();
if (window.caches) {
yield cacheGenerator();
}
};
window.clear = function*() {
yield deleteDB("idb1");
yield deleteDB("idb2");
yield caches.delete("plop");
if (window.caches) {
yield caches.delete("plop");
}
dump("removed indexedDB and cache data from " + document.location + "\n");
};