mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 830983 - Prevent removing in-memory app permissions when deleting only its in-browser permissions., r=sicking
This commit is contained in:
parent
c1ce2bf42c
commit
b7715a8b56
@ -1231,6 +1231,9 @@ nsPermissionManager::RemovePermissionsForApp(uint32_t aAppId, bool aBrowserOnly)
|
||||
data.permissions[i]->GetIsInBrowserElement(&isInBrowserElement);
|
||||
data.permissions[i]->GetType(type);
|
||||
|
||||
if (aBrowserOnly && !isInBrowserElement)
|
||||
continue;
|
||||
|
||||
nsCOMPtr<nsIPrincipal> principal;
|
||||
if (NS_FAILED(GetPrincipal(host, aAppId, isInBrowserElement,
|
||||
getter_AddRefs(principal)))) {
|
||||
|
Loading…
Reference in New Issue
Block a user