cookie_SaveCookies();
COOKIE_CookieViewerReturn(nsAutoString results) {  cookie_CookieStruct * cookie;  cookie_PermissionStruct * permission;  PRInt32 count = 0;  /* step through all cookies and delete those that are in the sequence */  char * gone = cookie_FindValueInArgs(results, "|goneC|");  cookie_LockCookieList();  if (cookie_cookieList) {    count = cookie_cookieList->Count();    while (count>0) {      count--;      cookie = NS_STATIC_CAST(cookie_CookieStruct*, cookie_cookieList->ElementAt(count));      if (cookie && cookie_InSequence(gone, count)) {        cookie_FreeCookie(cookie);      }    }  }  cookie_UnlockCookieList();  nsCRT::free(gone);  /* step through all permissions and delete those that are in the sequence */  gone = cookie_FindValueInArgs(results, "|goneP|");  cookie_LockPermissionList();  if (cookie_permissionList) {    count = cookie_permissionList->Count();    while (count>0) {      count--;      permission = NS_STATIC_CAST(cookie_PermissionStruct*, cookie_permissionList->ElementAt(count));      if (permission && cookie_InSequence(gone, count)) {        cookie_FreePermission(permission, PR_FALSE);        cookie_permissionsChanged = PR_TRUE;      }    }  }  cookie_SavePermissions();  cookie_UnlockPermissionListst();  nsCRT::free(gone);}