bug 104894, parsing p3p compact policies, r=harishd, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108304 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -4725,7 +4725,16 @@ HTMLContentSink::ProcessHeaderData(nsIAtom* aHeader,const nsAReadableString& aVa
|
||||
window->GetPrompter(getter_AddRefs(prompt));
|
||||
}
|
||||
}
|
||||
rv = cookieServ->SetCookieString(baseURI, prompt, cookie);
|
||||
|
||||
nsCOMPtr<nsIHttpChannel> httpChannel;
|
||||
if (mParser) {
|
||||
nsCOMPtr<nsIChannel> channel;
|
||||
if (NS_SUCCEEDED(mParser->GetChannel(getter_AddRefs(channel)))) {
|
||||
httpChannel = do_QueryInterface(channel);
|
||||
}
|
||||
}
|
||||
|
||||
rv = cookieServ->SetCookieString(baseURI, prompt, cookie, httpChannel);
|
||||
nsCRT::free(cookie);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
} // END set-cookie
|
||||
|
||||
Reference in New Issue
Block a user