rem: function loadCookies() { CreateCookieList(); var cookielist = document.getElementById("cookielist"); for(i = 0; i < cookies.length; i++) { var item  = document.createElement("treeitem"); var row   = document.createElement("treerow"); var cell  = document.createElement("treecell"); var domain = cookies[i].domain; if(domain.charAt(0) == ".") domain = domain.substring(1,domain.length); var text = document.createTextNode(domain); cell.appendChild(text); row.appendChild(cell); var cell  = document.createElement("treecell"); var text = document.createTextNode(cookies[i].name); cell.appendChild(text); row.appendChild(cell); item.appendChild(row); item.setAttribute("id","tree_" + i); cookielist.appendChild(item); } } 
add: function loadCookies(){ cookie_mode = 0; top.frames[index_frame].document.open(); top.frames[index_frame].document.write( "<body bgcolor='#c0c0c0'>" + "<table border='0' width='100%'>" + "<tr>" + "<td align='center' valign='middle' bgcolor='#ffffff'>" + "<font size='2' color='#666666'>" + "<b>" + cookiesTab + "</b>" + "</font>" + "</td>" + "<td align='center' valign='middle' bgcolor='#c0c0c0'>" + "<a onclick='top.loadPermissions();' href=''>" + "<font size='2'>" + permissionsTab + "</font>" + "</a>" + "</td>" + "</tr>" + "</table>" + "</body>" ); top.frames[index_frame].document.close();  top.frames[title_frame].document.open(); top.frames[title_frame].document.write ("&nbsp;" + cookiesStored); top.frames[title_frame].document.close();  top.frames[prop_frame].document.open(); top.frames[prop_frame].document.close();  loadCookiesList(); } 
context: function loadCookies(){  CreateCookieList();   // builds an object array from cookiestream  var cookielist = document.getElementById("cookielist");  for(i = 0; i < cookies.length; i++)  {    var item  = document.createElement("treeitem");    var row   = document.createElement("treerow");    var cell  = document.createElement("treecell");    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);    var text = document.createTextNode(domain);    cell.appendChild(text);    row.appendChild(cell);    var cell  = document.createElement("treecell");    var text = document.createTextNode(cookies[i].name);    cell.appendChild(text);    row.appendChild(cell);    item.appendChild(row);    item.setAttribute("id","tree_" + i);    cookielist.appendChild(item);}}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/c6fa5d1ce98e2ddef2cf4037c1a1113c104f5980/CookieViewer.js/buggy/extensions/wallet/cookieviewer/CookieViewer.js