зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1538737 - Don't isolate proxy auth credential cache by origin attributes on all places, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D25422 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
44989b091f
Коммит
7788764293
|
@ -661,7 +661,13 @@ nsresult nsHttpChannelAuthProvider::GetCredentialsForChallenge(
|
|||
rv = mAuthChannel->GetLoadFlags(&loadFlags);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// Fill only for non-proxy auth, proxy credentials are not OA-isolated.
|
||||
nsAutoCString suffix;
|
||||
|
||||
if (!proxyAuth) {
|
||||
nsCOMPtr<nsIChannel> chan = do_QueryInterface(mAuthChannel);
|
||||
GetOriginAttributesSuffix(chan, suffix);
|
||||
|
||||
// if this is the first challenge, then try using the identity
|
||||
// specified in the URL.
|
||||
if (mIdent.IsEmpty()) {
|
||||
|
@ -681,10 +687,6 @@ nsresult nsHttpChannelAuthProvider::GetCredentialsForChallenge(
|
|||
return NS_ERROR_NOT_AVAILABLE;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIChannel> chan = do_QueryInterface(mAuthChannel);
|
||||
nsAutoCString suffix;
|
||||
GetOriginAttributesSuffix(chan, suffix);
|
||||
|
||||
//
|
||||
// if we already tried some credentials for this transaction, then
|
||||
// we need to possibly clear them from the cache, unless the credentials
|
||||
|
@ -1244,7 +1246,10 @@ NS_IMETHODIMP nsHttpChannelAuthProvider::OnAuthAvailable(
|
|||
|
||||
nsCOMPtr<nsIChannel> chan = do_QueryInterface(mAuthChannel);
|
||||
nsAutoCString suffix;
|
||||
GetOriginAttributesSuffix(chan, suffix);
|
||||
if (!mProxyAuth) {
|
||||
// Fill only for non-proxy auth, proxy credentials are not OA-isolated.
|
||||
GetOriginAttributesSuffix(chan, suffix);
|
||||
}
|
||||
|
||||
nsHttpAuthCache *authCache = gHttpHandler->AuthCache(mIsPrivate);
|
||||
nsHttpAuthEntry *entry = nullptr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче