Bug 1285885 - Turn off PROMPT_ACTION permission hack for non-b2g builds. r=amarchesini

This commit is contained in:
Gabor Krizsanits 2016-08-01 12:27:20 +02:00
Родитель 714cb5c7c5
Коммит 11e4e3f5fd
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1671,6 +1671,7 @@ nsPermissionManager::AddInternal(nsIPrincipal* aPrincipal,
id = aID; id = aID;
} }
#ifdef MOZ_B2G
// When we do the initial addition of the permissions we don't want to // When we do the initial addition of the permissions we don't want to
// inherit session specific permissions from other tabs or apps // inherit session specific permissions from other tabs or apps
// so we ignore them and set the permission to PROMPT_ACTION if it was // so we ignore them and set the permission to PROMPT_ACTION if it was
@ -1680,6 +1681,7 @@ nsPermissionManager::AddInternal(nsIPrincipal* aPrincipal,
aPermission = nsIPermissionManager::PROMPT_ACTION; aPermission = nsIPermissionManager::PROMPT_ACTION;
aExpireType = nsIPermissionManager::EXPIRE_NEVER; aExpireType = nsIPermissionManager::EXPIRE_NEVER;
} }
#endif // MOZ_B2G
entry->GetPermissions().AppendElement(PermissionEntry(id, typeIndex, aPermission, entry->GetPermissions().AppendElement(PermissionEntry(id, typeIndex, aPermission,
aExpireType, aExpireTime, aExpireType, aExpireTime,