bug 107579, infrastructure for detecting 3rd-party cookies, r=darin,rpotts, sr=devitz

git-svn-id: svn://10.0.0.236/trunk@115625 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
morse%netscape.com
2002-03-02 01:26:49 +00:00
parent 4d3af7b911
commit c30bfac365
17 changed files with 88 additions and 33 deletions

View File

@@ -840,6 +840,8 @@ nsHTMLDocument::StartDocumentLoad(const char* aCommand,
SetReferrer(referrer);
}
mHttpChannel = httpChannel;
nsCOMPtr<nsICachingChannel> cachingChan = do_QueryInterface(httpChannel);
if (cachingChan) {
nsCOMPtr<nsISupports> cacheToken;
@@ -2187,7 +2189,7 @@ nsHTMLDocument::SetCookie(const nsAReadableString& aCookie)
result = NS_ERROR_OUT_OF_MEMORY;
char* cookie = ToNewCString(aCookie);
if (cookie) {
result = service->SetCookieString(mDocumentURL, prompt, cookie, 0);
result = service->SetCookieString(mDocumentURL, prompt, cookie, mHttpChannel);
nsCRT::free(cookie);
}
}