continue implementing reject-foreign-cookies pref, bug=13655, r=rjc, a=chofmann

This commit is contained in:
morse%netscape.com 1999-12-19 03:44:34 +00:00
parent 6133cf2276
commit 6cf2c4411b

View File

@ -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) {