if (nsnull == url) { wallet_PostEdit(); return; }  nsINetService *netservice; nsresult res; res = nsServiceManager::GetService(kNetServiceCID, kINetServiceIID, (nsISupports **)&netservice); if ((NS_SUCCEEDED(res)) && (nsnull != netservice)) { wallet_Initialize(); nsAutoString * cookie = new nsAutoString("SchemaToValue="); *cookie += BREAK; XP_List * list_ptr; wallet_MapElement * ptr; list_ptr = wallet_SchemaToValue_list;  while((ptr = (wallet_MapElement *) XP_ListNextObject(list_ptr))!=0) { *cookie += *(ptr->item1) + BREAK; if (*ptr->item2 != "") { *cookie += *(ptr->item2) + BREAK; } else { XP_List * list_ptr1; wallet_Sublist * ptr1; list_ptr1 = ptr->itemList; while((ptr1=(wallet_Sublist *) XP_ListNextObject(list_ptr1))!=0) { *cookie += *(ptr1->item) + BREAK; } } *cookie += BREAK; } res = netservice->SetCookieString(url, *cookie); delete cookie; NS_RELEASE(netservice); }
WLLT_PreEdit(nsIURL* url) {}