mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 904298 - Bustage fix.
This commit is contained in:
parent
ef3e99712f
commit
8fee1f2041
@ -219,12 +219,14 @@ CheckPermission(PContentParent* aActor,
|
||||
return permission;
|
||||
}
|
||||
|
||||
if (appPerm == PROMPT_ACTION || permission == PROMPT_ACTION) {
|
||||
return PROMPT_ACTION;
|
||||
if (appPerm == nsIPermissionManager::PROMPT_ACTION ||
|
||||
permission == nsIPermissionManager::PROMPT_ACTION) {
|
||||
return nsIPermissionManager::PROMPT_ACTION;
|
||||
}
|
||||
|
||||
if (appPerm == ALLOW_ACTION || permission == ALLOW_ACTION) {
|
||||
return ALLOW_ACTION;
|
||||
if (appPerm == nsIPermissionManager::ALLOW_ACTION ||
|
||||
permission == nsIPermissionManager::ALLOW_ACTION) {
|
||||
return nsIPermissionManager::ALLOW_ACTION;
|
||||
}
|
||||
|
||||
NS_RUNTIMEABORT("Invalid permission value");
|
||||
|
Loading…
Reference in New Issue
Block a user