зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1285885 - Turn off PROMPT_ACTION permission hack for non-b2g builds. r=amarchesini
This commit is contained in:
Родитель
714cb5c7c5
Коммит
11e4e3f5fd
|
@ -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,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче