mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 758357 - Backout 6763477075a4 for causing bug 770085. r=backout
This commit is contained in:
parent
ed6718553a
commit
0ecfc439b7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user