From 0ecfc439b7f1b708e7beef9f99a7bea9c2a6cd25 Mon Sep 17 00:00:00 2001 From: Chris Pearce Date: Mon, 2 Jul 2012 16:49:07 +1200 Subject: [PATCH] Bug 758357 - Backout 6763477075a4 for causing bug 770085. r=backout --- dom/file/test/helpers.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dom/file/test/helpers.js b/dom/file/test/helpers.js index e3494df2b33..77ec140b56b 100644 --- a/dom/file/test/helpers.js +++ b/dom/file/test/helpers.js @@ -17,6 +17,7 @@ var testGenerator = testSteps(); function runTest() { + allowIndexedDB(); allowUnlimitedQuota(); SimpleTest.waitForExplicitFinish(); @@ -26,6 +27,7 @@ function runTest() function finishTest() { resetUnlimitedQuota(); + resetIndexedDB(); SimpleTest.executeSoon(function() { testGenerator.close(); @@ -88,6 +90,16 @@ function removePermission(type, url) SpecialPowers.removePermission(type, url); } +function allowIndexedDB(url) +{ + addPermission("indexedDB", true, url); +} + +function resetIndexedDB(url) +{ + removePermission("indexedDB", url); +} + function allowUnlimitedQuota(url) { addPermission("indexedDB-unlimited", true, url);