rem: function ViewCookieSelected(node) { var cookietree = document.getElementById("cookietree"); if(cookietree.nodeName != "tree") return false; if(cookietree.selectedItems.length > 1) return false; cookie = node; if(cookie.getAttribute("id").indexOf("tree_") == -1) return false; var idx = parseInt(cookie.getAttribute("id").substring(5,cookie.getAttribute("id").length)); var props = [cookies[idx].number, cookies[idx].name, cookies[idx].value, cookies[idx].domaintype, cookies[idx].domain, cookies[idx].path, cookies[idx].secure, cookies[idx].expire];  rows = [null,"ifl_name","ifl_value","ifl_domaintype","ifl_domain","ifl_path","ifl_secure","ifl_expires"]; for(i = 1; i < props.length; i++) { if(i == 3) { var dtypecell = document.getElementById("ifl_domaintype"); if(dtypecell.hasChildNodes()) { dtypecell.removeChild(dtypecell.lastChild); } if(cookies[idx].domaintype == "Domain") var contentStr = bundle.GetStringFromName("domain"); else var contentStr = bundle.GetStringFromName("host"); var content = document.createTextNode(contentStr); dtypecell.appendChild(content); continue; 
add: function ViewCookieSelected() { index = 8*(top.frames[list_frame].document.fSelectCookie.selname.selectedIndex) + 1; top.frames[prop_frame].document.open(); top.frames[prop_frame].document.write( "<nobr><b>" + name + "</b> " + cookieList[index+1] + "</nobr><br/>" + "<nobr><b>" + value + "</b> " + cookieList[index+2] + "</nobr><br/>" + "<nobr><b>" + cookieList[index+3] + ": </b>" + cookieList[index+4] + "</nobr><br/>" + "<nobr><b>" + path + "</b> " + cookieList[index+5] + "</nobr><br/>" + "<nobr><b>" + secure + "</b> " + cookieList[index+6] + "</nobr><br/>" + "<nobr><b>" + expires + "</b> " + cookieList[index+7] + "</nobr><br/>" ); top.frames[prop_frame].document.close(); 
context: function ViewCookieSelected(node) {  var cookietree = document.getElementById("cookietree");  if(cookietree.nodeName != "tree")    return false;  if(cookietree.selectedItems.length > 1)    return false;  cookie = node;  if(cookie.getAttribute("id").indexOf("tree_") == -1)    return false;  var idx = parseInt(cookie.getAttribute("id").substring(5,cookie.getAttribute("id").length));  var props = [cookies[idx].number, cookies[idx].name, cookies[idx].value,                cookies[idx].domaintype, cookies[idx].domain, cookies[idx].path,               cookies[idx].secure, cookies[idx].expire];  rows =    [null,"ifl_name","ifl_value","ifl_domaintype","ifl_domain","ifl_path","ifl_secure","ifl_expires"];  for(i = 1; i < props.length; i++)  {    if(i == 3) {      var dtypecell = document.getElementById("ifl_domaintype");      if(dtypecell.hasChildNodes()) {        dtypecell.removeChild(dtypecell.lastChild);      }      if(cookies[idx].domaintype == "Domain")        var contentStr = bundle.GetStringFromName("domain");      else         var contentStr = bundle.GetStringFromName("host");      var content = document.createTextNode(contentStr);      dtypecell.appendChild(content);      continue;    }    var field = document.getElementById(rows[i]);    var content = props[i];    field.value = content;    if(rows[i] == "ifl_expires") break;  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/c6fa5d1ce98e2ddef2cf4037c1a1113c104f5980/CookieViewer.js/buggy/extensions/wallet/cookieviewer/CookieViewer.js