Bug 1810544 - OpaqueResponse::Alllow -> OpaqueResponse::Allow. r=smaug,necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D166927
This commit is contained in:
Andreas Farre 2023-01-16 19:17:14 +00:00
Родитель f3fa6118c6
Коммит ead5ce5973
3 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -3091,12 +3091,12 @@ HttpBaseChannel::PerformOpaqueResponseSafelistCheckBeforeSniff() {
MOZ_ASSERT(XRE_IsParentProcess());
if (!mCachedOpaqueResponseBlockingPref) {
return OpaqueResponse::Alllow;
return OpaqueResponse::Allow;
}
// https://whatpr.org/fetch/1442.html#http-fetch, step 6.4
if (!ShouldBlockOpaqueResponse()) {
return OpaqueResponse::Alllow;
return OpaqueResponse::Allow;
}
// https://whatpr.org/fetch/1442.html#orb-algorithm
@ -3115,7 +3115,7 @@ HttpBaseChannel::PerformOpaqueResponseSafelistCheckBeforeSniff() {
nosniff)) {
case OpaqueResponseBlockedReason::ALLOWED_SAFE_LISTED:
// Step 3.1
return OpaqueResponse::Alllow;
return OpaqueResponse::Allow;
case OpaqueResponseBlockedReason::BLOCKED_BLOCKLISTED_NEVER_SNIFFED:
// Step 3.2
LOGORB("Blocked: BLOCKED_BLOCKLISTED_NEVER_SNIFFED");
@ -3145,7 +3145,7 @@ HttpBaseChannel::PerformOpaqueResponseSafelistCheckBeforeSniff() {
bool isMediaInitialRequest;
mLoadInfo->GetIsMediaInitialRequest(&isMediaInitialRequest);
if (!isMediaInitialRequest) {
return OpaqueResponse::Alllow;
return OpaqueResponse::Allow;
}
}
@ -3231,7 +3231,7 @@ OpaqueResponse HttpBaseChannel::PerformOpaqueResponseSafelistCheckAfterSniff(
// Step 13
if (!mResponseHead || aContentType.IsEmpty()) {
LOGORB("Allowed: mimeType is failure");
return OpaqueResponse::Alllow;
return OpaqueResponse::Allow;
}
// Step 14

Просмотреть файл

@ -80,7 +80,7 @@ enum CacheDisposition : uint8_t {
kCacheUnknown = 5
};
enum class OpaqueResponse { Block, Alllow, SniffCompressed, Sniff };
enum class OpaqueResponse { Block, Allow, SniffCompressed, Sniff };
/*
* This class is a partial implementation of nsIHttpChannel. It contains code

Просмотреть файл

@ -348,7 +348,7 @@ nsresult OpaqueResponseBlocker::EnsureOpaqueResponseIsAllowedAfterSniff(
case OpaqueResponse::Block:
BlockResponse(httpBaseChannel, NS_ERROR_FAILURE);
return NS_ERROR_FAILURE;
case OpaqueResponse::Alllow:
case OpaqueResponse::Allow:
AllowResponse();
return NS_OK;
case OpaqueResponse::Sniff: