mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset e73523d185a7 (bug 567365) for m-oth failures in test_bug112564.xul
This commit is contained in:
parent
08ba461ad4
commit
fd528653dc
@ -12541,9 +12541,13 @@ nsDocShell::ShouldDiscardLayoutState(nsIHttpChannel* aChannel)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// figure out if SH should be saving layout state
|
// figure out if SH should be saving layout state
|
||||||
bool noStore = false;
|
nsCOMPtr<nsISupports> securityInfo;
|
||||||
|
bool noStore = false, noCache = false;
|
||||||
|
aChannel->GetSecurityInfo(getter_AddRefs(securityInfo));
|
||||||
aChannel->IsNoStoreResponse(&noStore);
|
aChannel->IsNoStoreResponse(&noStore);
|
||||||
return noStore;
|
aChannel->IsNoCacheResponse(&noCache);
|
||||||
|
|
||||||
|
return (noStore || (noCache && securityInfo));
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_IMETHODIMP
|
NS_IMETHODIMP
|
||||||
|
@ -3206,9 +3206,11 @@ nsHttpChannel::OnCacheEntryCheck(nsICacheEntry* entry, nsIApplicationCache* appC
|
|||||||
// which we must validate the cached response with the server.
|
// which we must validate the cached response with the server.
|
||||||
else if (mLoadFlags & nsIRequest::VALIDATE_NEVER) {
|
else if (mLoadFlags & nsIRequest::VALIDATE_NEVER) {
|
||||||
LOG(("VALIDATE_NEVER set\n"));
|
LOG(("VALIDATE_NEVER set\n"));
|
||||||
// if no-store validate cached response (see bug 112564)
|
// if no-store or if no-cache and ssl, validate cached response (see
|
||||||
if (mCachedResponseHead->NoStore()) {
|
// bug 112564 for an explanation of this logic)
|
||||||
LOG(("Validating based on no-store logic\n"));
|
if (mCachedResponseHead->NoStore() ||
|
||||||
|
(mCachedResponseHead->NoCache() && isHttps)) {
|
||||||
|
LOG(("Validating based on (no-store || (no-cache && ssl)) logic\n"));
|
||||||
doValidation = true;
|
doValidation = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user