diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-05-12 14:32:03 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-05-12 14:32:03 +0200 |
commit | 37488f629039f32b4c5c0a1a234582e48c24eec5 (patch) | |
tree | f5e99b3029cf54409ae5951e9e91cca3a54addc7 /extensions | |
parent | 27d78c270706cba59120b7c9ce21d4389a51496c (diff) | |
download | uxp-37488f629039f32b4c5c0a1a234582e48c24eec5.tar.gz |
Remove MOZ_B2G leftovers and some dead B2G-only components.
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/cookie/nsPermissionManager.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/extensions/cookie/nsPermissionManager.cpp b/extensions/cookie/nsPermissionManager.cpp index d3696dd948..c448308121 100644 --- a/extensions/cookie/nsPermissionManager.cpp +++ b/extensions/cookie/nsPermissionManager.cpp @@ -1666,18 +1666,6 @@ nsPermissionManager::AddInternal(nsIPrincipal* aPrincipal, id = aID; } -#ifdef MOZ_B2G - // When we do the initial addition of the permissions we don't want to - // inherit session specific permissions from other tabs or apps - // so we ignore them and set the permission to PROMPT_ACTION if it was - // previously allowed or denied by the user. - if (aIgnoreSessionPermissions && - aExpireType == nsIPermissionManager::EXPIRE_SESSION) { - aPermission = nsIPermissionManager::PROMPT_ACTION; - aExpireType = nsIPermissionManager::EXPIRE_NEVER; - } -#endif // MOZ_B2G - entry->GetPermissions().AppendElement(PermissionEntry(id, typeIndex, aPermission, aExpireType, aExpireTime, aModificationTime)); |