rem: value = ( !selItemsMax ) ? props[i] : ""; 
add: value = props[i]; } if (selItemsMax && rows[i] != "ifl_isDomain") { value = ""; 
context: function ViewCookieSelected( e ) {  var cookie = null;  var cookietree = document.getElementById("cookietree");  var selItemsMax = false;  if(cookietree.nodeName != "tree")    return false;  if(cookietree.selectedItems.length > 1)    selItemsMax = true;  if( cookietree.selectedItems.length )    document.getElementById("removeCookies").removeAttribute("disabled","true");      if( ( e.type == "keypress" || e.type == "select" ) && e.target.selectedItems.length )    cookie = cookietree.selectedItems[0];  if( e.type == "click" )     cookie = e.target.parentNode.parentNode;  if( !cookie || cookie.getAttribute("id").indexOf("cookietree_") == -1)    return false;  var idx = parseInt(cookie.getAttribute("id").substring("cookietree_".length,cookie.getAttribute("id").length));  for (var x=0; x<cookies.length; x++) {    if (cookies[x].number == idx) {      idx = x;      break;    }  }  var props = [cookies[idx].number, cookies[idx].name, cookies[idx].value,                cookies[idx].isDomain, cookies[idx].host, cookies[idx].path,               cookies[idx].isSecure, cookies[idx].expires];  var rows =    [null,"ifl_name","ifl_value","ifl_isDomain","ifl_host","ifl_path","ifl_isSecure","ifl_expires"];  var value;  var field;  for(var i = 1; i < props.length; i++)  {    if(rows[i] == "ifl_isDomain") {      field = document.getElementById("ifl_isDomain");      value = cookies[idx].isDomain ?              bundle.GetStringFromName("domainColon") :              bundle.GetStringFromName("hostColon");    } else if (rows[i] == "ifl_isSecure") {      field = document.getElementById("ifl_isSecure");      value = cookies[idx].isSecure ?              bundle.GetStringFromName("yes") : bundle.GetStringFromName("no");    } else if (rows[i] == "ifl_expires") {      field = document.getElementById("ifl_expires");      var date = new Date(1000*cookies[idx].expires);      value = cookies[idx].expires              ? date.toLocaleString()              : bundle.GetStringFromName("AtEndOfSession");    } else {      field = document.getElementById(rows[i]);      value = ( !selItemsMax ) ? props[i] : "";  // multiple selections clear fields.    }    field.setAttribute("value", value);    if(rows[i] == "ifl_expires") break;  }  return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/41fcf882ca7c729dbba84108db0d99d97573c5bb/CookieViewer.js/buggy/extensions/wallet/cookieviewer/CookieViewer.js