if (PL_strlen(block) && block[0]=='t') {
if (block[0] != '\0' && block[0] == 't' && cookie->host) {
COOKIE_CookieViewerReturn(nsAutoString results) {  cookie_CookieStruct * cookie;  PRInt32 count = 0;  /* step through all cookies and delete those that are in the sequence */  char * gone = cookie_FindValueInArgs(results, "|goneC|");  char * block = cookie_FindValueInArgs(results, "|block|");  if (cookie_cookieList) {    count = cookie_cookieList->Count();    while (count>0) {      count--;      cookie = NS_STATIC_CAST(cookie_CookieStruct*, cookie_cookieList->ElementAt(count));      NS_ASSERTION(cookie, "corrupt cookie list");      if (cookie_InSequence(gone, count)) {        if (PL_strlen(block) && block[0]=='t') {          char * hostname = nsnull;          StrAllocCopy(hostname, cookie->host);          permission_Add(hostname, PR_FALSE, COOKIEPERMISSION, PR_TRUE);        }        cookie_cookieList->RemoveElementAt(count);        deleteCookie((void*)cookie, nsnull);        cookie_cookiesChanged = PR_TRUE;      }    }  }  cookie_Save();  nsCRT::free(gone);  nsCRT::free(block);  /* step through all permissions and delete those that are in the sequence */  for (PRInt32 type = 0; type < NUMBER_OF_PERMISSIONS; type++) {    switch (type) {      case COOKIEPERMISSION:        gone = cookie_FindValueInArgs(results, "|goneP|");        break;      case IMAGEPERMISSION:        gone = cookie_FindValueInArgs(results, "|goneI|");        break;    }    if (cookie_permissionList) {      count = cookie_permissionList->Count();      while (count>0) {        count--;        if (cookie_InSequence(gone, count)) {          permission_Free(count, type, PR_FALSE);          cookie_permissionsChanged = PR_TRUE;        }      }    }    permission_Save();    nsCRT::free(gone);  }}