rem: treeCell.setAttribute("class", "directory"); 
add: treeCell.setAttribute("class", "directory treecell-iconic"); 
context: function createTree(parentElement, dirArray){  var treeChildren = document.createElement("treechildren");  var len = dirArray.length;  var file;  /* create the elements in the tree */  for (var i=0; i < len; i++)  {    file = dirArray[i];    var styleClass = "";    var isSymlink = false;    var isHidden = false;    var isDirectory = false;    var isFile = false;    try {      if (file.isSymlink()) {        isSymlink = true;      }      if (file.isHidden()) {        isHidden = true;      }      if (file.isDirectory()) {        isDirectory = true;      }      if (file.isHidden()) {        isHidden = true;      }      if (file.isFile()) {        isFile = true;      }    } catch(ex) { dump("couldn't stat one of the files\n"); }    /* treeItem */    var treeItem = document.createElement("treeitem");    /* set hidden on the tree item so that we use grey text for the entire row */    if (isHidden)      treeItem.setAttribute("class", "hidden");    /* treeRow */    var treeRow = document.createElement("treerow");    treeRow.setAttribute("path", file.path);    /* treeCell -- name */    var treeCell = document.createElement("treecell");    /*    treeCell.setAttribute("indent", "true");*/    treeCell.setAttribute("value", file.leafName);    if (isDirectory)      treeCell.setAttribute("class", "directory");    else if (isFile)      treeCell.setAttribute("class", "file");    treeRow.appendChild(treeCell);    /* treeCell -- size */    treeCell = document.createElement("treecell");    try {      if (file.fileSize != 0) {        treeCell.setAttribute("value", file.fileSize);      }    } catch(ex) { }    treeRow.appendChild(treeCell);    /* treeCell -- permissions */    treeCell = document.createElement("treecell");    try {      const p = file.permissions;      var perms = "";      /*      dump(p + " "); */      if (isSymlink) {        perms += "lrwxrwxrwx";      } else {        perms += (isDirectory) ? "d" : "-";        perms += (p & 00400) ? "r" : "-";        perms += (p & 00200) ? "w" : "-";        perms += (p & 00100) ? "x" : "-";        perms += (p & 00040) ? "r" : "-";        perms += (p & 00020) ? "w" : "-";        perms += (p & 00010) ? "x" : "-";        perms += (p & 00004) ? "r" : "-";        perms += (p & 00002) ? "w" : "-";        perms += (p & 00001) ? "x" : "-";        /*        dump(perms + "\n"); */      }      treeCell.setAttribute("value", perms);    } catch(ex) { }    treeRow.appendChild(treeCell);    /* append treeRow to treeItem */    treeItem.appendChild(treeRow);    /* append treeItem to treeChildren */    treeChildren.appendChild(treeItem);  }  /* append treeChildren to parent (tree) */  parentElement.appendChild(treeChildren);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/6ef65037c4dffc645fccdba5771efe0f5ab059d0/filepicker.js/buggy/xpfe/components/filepicker/res/content/filepicker.js