mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-03 05:47:29 +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
|
|
@ -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");
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue