Bug 1049299 - Correctly calculate 3rd-party cookie status for content-process HTTP channels. r=jduell

This commit is contained in:
Blake Kaplan
2014-10-28 14:23:00 +01:00
parent 60ead4688f
commit 1bd13f9ab8
11 changed files with 128 additions and 25 deletions

View File

@@ -10378,8 +10378,8 @@ nsDocShell::DoURILoad(nsIURI * aURI,
nsCOMPtr<nsIHttpChannelInternal> httpChannelInternal(do_QueryInterface(channel));
if (httpChannelInternal) {
if (aForceAllowCookies) {
httpChannelInternal->SetForceAllowThirdPartyCookie(true);
}
httpChannelInternal->SetThirdPartyFlags(nsIHttpChannelInternal::THIRD_PARTY_FORCE_ALLOW);
}
if (aFirstParty) {
httpChannelInternal->SetDocumentURI(aURI);
} else {