Bug 758357 - Backout 6763477075a4 for causing bug 770085. r=backout

This commit is contained in:
Chris Pearce 2012-07-02 16:49:07 +12:00
parent ed6718553a
commit 0ecfc439b7

View File

@ -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);