rem:  var list        = cookieviewer.GetCookieValue(); var BREAK       = list.substring(0,1); cookieList      = list.split(BREAK); CreateCookieList(); for(var i = 0; i < cookies.length; i++) { var domain = cookies[i].domain; if(domain.charAt(0) == ".") domain = domain.substring(1,domain.length); AddItem("cookielist", [domain,cookies[i].name], "tree_", cookies[i].number); 
add: var cookieString; var cookieArray  = [];  var enumerator = cookiemanager.enumerator; var count = 0; while (enumerator.hasMoreElements()) { var nextCookie = enumerator.getNext(); nextCookie = nextCookie.QueryInterface(Components.interfaces.nsICookie);  var name = nextCookie.name; var value = nextCookie.value; var isDomain = nextCookie.isDomain; var host = nextCookie.host; var path = nextCookie.path; var isSecure = nextCookie.isSecure; var expires = nextCookie.expires;  AddCookieToList (count, name, value, isDomain, host, path, isSecure, expires); if(host.charAt(0) == ".") { host = host.substring(1,host.length); } AddItem("cookieList", [host, name], "cookietree_", count++); 
context: function loadCookies(){  //  get cookies into an array  var list        = cookieviewer.GetCookieValue();  var BREAK       = list.substring(0,1);  cookieList      = list.split(BREAK);  CreateCookieList();   // builds an object array from cookiestream  for(var i = 0; i < cookies.length; i++)  {    var domain = cookies[i].domain;    if(domain.charAt(0) == ".")   // get rid of the ugly dot on the start of some domains      domain = domain.substring(1,domain.length);    AddItem("cookielist", [domain,cookies[i].name], "tree_", cookies[i].number);  }  if (cookies.length == 0) {    document.getElementById("removeAllCookies").setAttribute("disabled","true");  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4ac856f9884e64aa0c425345b3f61ee61c431b8b/CookieViewer.js/clean/extensions/wallet/cookieviewer/CookieViewer.js