result = NS_ERROR_FAILURE;
nsCookieService::GetCookieString(nsIURI *aURL, nsString& aCookie) {  char *spec = NULL;  nsresult result = aURL->GetSpec(&spec);  NS_ASSERTION(result == NS_OK, "deal with this");  char *cookie = COOKIE_GetCookie((char *)spec);  if (nsnull != cookie) {    aCookie.SetString(cookie);    nsCRT::free(cookie);    result = NS_OK;  } else {    aCookie.SetString("");    result = NS_ERROR_FAILURE;  }  nsCRT::free(spec);  return result;}