зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1422710 Block opaque tainted requests that do not follow redirects. r=ckerschb
This commit is contained in:
Родитель
c7c75836c0
Коммит
be5f3caad5
|
@ -805,6 +805,7 @@ nsContentSecurityManager::CheckChannel(nsIChannel* aChannel)
|
|||
if ((securityMode == nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_INHERITS) ||
|
||||
(securityMode == nsILoadInfo::SEC_ALLOW_CROSS_ORIGIN_DATA_IS_NULL)) {
|
||||
if (NS_HasBeenCrossOrigin(aChannel)) {
|
||||
NS_ENSURE_FALSE(loadInfo->GetDontFollowRedirects(), NS_ERROR_DOM_BAD_URI);
|
||||
loadInfo->MaybeIncreaseTainting(LoadTainting::Opaque);
|
||||
}
|
||||
// Please note that DoCheckLoadURIChecks should only be enforced for
|
||||
|
|
Загрузка…
Ссылка в новой задаче