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
|
||||
bool noStore = false;
|
||||
nsCOMPtr<nsISupports> securityInfo;
|
||||
bool noStore = false, noCache = false;
|
||||
aChannel->GetSecurityInfo(getter_AddRefs(securityInfo));
|
||||
aChannel->IsNoStoreResponse(&noStore);
|
||||
return noStore;
|
||||
aChannel->IsNoCacheResponse(&noCache);
|
||||
|
||||
return (noStore || (noCache && securityInfo));
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
@ -3206,9 +3206,11 @@ nsHttpChannel::OnCacheEntryCheck(nsICacheEntry* entry, nsIApplicationCache* appC
|
||||
// which we must validate the cached response with the server.
|
||||
else if (mLoadFlags & nsIRequest::VALIDATE_NEVER) {
|
||||
LOG(("VALIDATE_NEVER set\n"));
|
||||
// if no-store validate cached response (see bug 112564)
|
||||
if (mCachedResponseHead->NoStore()) {
|
||||
LOG(("Validating based on no-store logic\n"));
|
||||
// if no-store or if no-cache and ssl, validate cached response (see
|
||||
// bug 112564 for an explanation of this logic)
|
||||
if (mCachedResponseHead->NoStore() ||
|
||||
(mCachedResponseHead->NoCache() && isHttps)) {
|
||||
LOG(("Validating based on (no-store || (no-cache && ssl)) logic\n"));
|
||||
doValidation = true;
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user