mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1116765 - Fix browser_noperm.js test to consider indexedDB an always allowed permission. r=myk
This commit is contained in:
parent
042643e0f2
commit
4183728863
@ -18,12 +18,18 @@ function test() {
|
||||
let principal = document.getElementById("content").contentDocument.defaultView.document.nodePrincipal;
|
||||
is(DOMApplicationRegistry.getAppLocalIdByManifestURL(app.manifestURL), principal.appId, "Principal app ID correct");
|
||||
|
||||
let alwaysAllowed = ["indexedDB"]
|
||||
|
||||
// Check if all the permissions of the app are unknown.
|
||||
for (let permName of AllPossiblePermissions) {
|
||||
// Get the value for the permission.
|
||||
let permValue = Services.perms.testExactPermissionFromPrincipal(principal, permName);
|
||||
|
||||
is(permValue, Ci.nsIPermissionManager.UNKNOWN_ACTION, "Permission " + permName + " unknown.");
|
||||
if (alwaysAllowed.includes(permName)) {
|
||||
is(permValue, Ci.nsIPermissionManager.ALLOW_ACTION, "Permission " + permName + " allowed.");
|
||||
} else {
|
||||
is(permValue, Ci.nsIPermissionManager.UNKNOWN_ACTION, "Permission " + permName + " unknown.");
|
||||
}
|
||||
}
|
||||
|
||||
finish();
|
||||
|
Loading…
Reference in New Issue
Block a user