Bug 1598759 - Remove support for Large-Allocation HTTP header. r=nika,fluent-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D140459
This commit is contained in:
Chris Peterson
2022-03-09 03:18:04 +00:00
parent dbdc62e907
commit 35b24a43cd
33 changed files with 16 additions and 1098 deletions

View File

@@ -1928,12 +1928,11 @@ CanonicalBrowsingContext::ChangeRemoteness(
// If we're aiming to end up in a new process of the same type as our old
// process, and then putting our previous document in the BFCache, try to stay
// in the same process to avoid creating new processes unnecessarially.
// in the same process to avoid creating new processes unnecessarily.
RefPtr<ContentParent> existingProcess = GetContentParent();
if (existingProcess && existingProcess->IsAlive() &&
aOptions.mReplaceBrowsingContext &&
aOptions.mRemoteType == existingProcess->GetRemoteType() &&
aOptions.mRemoteType != LARGE_ALLOCATION_REMOTE_TYPE) {
aOptions.mRemoteType == existingProcess->GetRemoteType()) {
change->mContentParent = existingProcess;
change->mContentParent->AddKeepAlive();
change->ProcessLaunched();
@@ -2591,12 +2590,6 @@ bool CanonicalBrowsingContext::AllowedInBFCache(
return false;
}
nsAutoCString remoteType;
GetCurrentRemoteType(remoteType, IgnoredErrorResult());
if (remoteType == LARGE_ALLOCATION_REMOTE_TYPE) {
return false;
}
uint32_t bfcacheCombo = 0;
if (mRestoreState) {
bfcacheCombo |= BFCacheStatus::RESTORING;