continue implementing reject-foreign-cookies pref, bug=13655, r=rjc, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@56210 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -122,8 +122,10 @@ nsCookieHTTPNotify::ModifyRequest(nsISupports *aContext)
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsCOMPtr<nsIChannel> pChannel;
|
||||
rv = pLoadGroup->GetDefaultLoadChannel(getter_AddRefs(pChannel));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (pLoadGroup) {
|
||||
rv = pLoadGroup->GetDefaultLoadChannel(getter_AddRefs(pChannel));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIURI> pFirstURL;
|
||||
if (pChannel) {
|
||||
@@ -181,8 +183,10 @@ nsCookieHTTPNotify::AsyncExamineResponse(nsISupports *aContext)
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsCOMPtr<nsIChannel> pChannel;
|
||||
rv = pLoadGroup->GetDefaultLoadChannel(getter_AddRefs(pChannel));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (pLoadGroup) {
|
||||
rv = pLoadGroup->GetDefaultLoadChannel(getter_AddRefs(pChannel));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIURI> pFirstURL;
|
||||
if (pChannel) {
|
||||
|
||||
Reference in New Issue
Block a user