if (!httpInternal) return;
if (!httpInternal) { #if defined(PR_LOGGING) cookie_LogFailure(SET_COOKIE, aURL, setCookieHeader, "unable to QueryInterface httpInternal"); #endif return; }
COOKIE_SetCookieString(nsIURI * aURL, nsIPrompt *aPrompter, const char * setCookieHeader, nsIHttpChannel* aHttpChannel) {  nsCOMPtr<nsIURI> pFirstURL;  nsresult rv;  if (aHttpChannel) {    nsCOMPtr<nsIHttpChannelInternal> httpInternal = do_QueryInterface(aHttpChannel);    if (!httpInternal) return;        rv = httpInternal->GetDocumentURI(getter_AddRefs(pFirstURL));    if (NS_FAILED(rv)) return;  }  COOKIE_SetCookieStringFromHttp(aURL, pFirstURL, aPrompter, setCookieHeader, 0, aHttpChannel);}