зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1547114 - Part 1: Remove nsICookiePermission::CanAccessURI(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D28914 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
2294a7e391
Коммит
9421931e25
|
@ -128,23 +128,6 @@ nsCookiePermission::CanAccess(nsIPrincipal *aPrincipal,
|
|||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsCookiePermission::CanAccessURI(nsIURI *aURI, nsCookieAccess *aResult) {
|
||||
// Lazily initialize ourselves
|
||||
if (!EnsureInitialized()) return NS_ERROR_UNEXPECTED;
|
||||
|
||||
// finally, check with permission manager...
|
||||
nsresult rv =
|
||||
mPermMgr->TestPermission(aURI, kPermissionType, (uint32_t *)aResult);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
if (*aResult == nsICookiePermission::ACCESS_SESSION) {
|
||||
*aResult = nsICookiePermission::ACCESS_ALLOW;
|
||||
}
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsCookiePermission::CanSetCookie(nsIURI *aURI, nsIChannel *aChannel,
|
||||
nsICookie2 *aCookie, bool *aIsSession,
|
||||
|
|
|
@ -68,24 +68,6 @@ interface nsICookiePermission : nsISupports
|
|||
*/
|
||||
nsCookieAccess canAccess(in nsIPrincipal aPrincipal);
|
||||
|
||||
/**
|
||||
* canAccessURI
|
||||
*
|
||||
* this method is called to test whether or not the given principal may
|
||||
* access the cookie database, either to set or get cookies.
|
||||
*
|
||||
* Be careful when calling this function, you probably want the principal
|
||||
* based version instead of this one unless if performance is an issue.
|
||||
*
|
||||
* @param aURI
|
||||
* the URI trying to access cookies.
|
||||
*
|
||||
* @return one of the following nsCookieAccess values:
|
||||
* ACCESS_DEFAULT, ACCESS_ALLOW, ACCESS_DENY, or
|
||||
* ACCESS_ALLOW_FIRST_PARTY_ONLY
|
||||
*/
|
||||
nsCookieAccess canAccessURI(in nsIURI aURI);
|
||||
|
||||
/**
|
||||
* canSetCookie
|
||||
*
|
||||
|
|
Загрузка…
Ссылка в новой задаче