rem: nopreviewsOutliner = document.getElementById("nopreviewsOutliner"); nocapturesOutliner = document.getElementById("nocapturesOutliner"); 
add: nopreviewsTree = document.getElementById("nopreviewsTree"); nocapturesTree = document.getElementById("nocapturesTree"); 
context: function Startup() {dump("entering startup\n");  // xpconnect to password manager interfaces  signonviewer = Components.classes["@mozilla.org/signonviewer/signonviewer-world;1"].createInstance();  signonviewer = signonviewer.QueryInterface(Components.interfaces.nsISignonViewer);  passwordmanager = Components.classes["@mozilla.org/passwordmanager;1"].getService();  passwordmanager = passwordmanager.QueryInterface(Components.interfaces.nsIPasswordManager);  // determine if database is encrypted  try {    var pref = Components.classes["@mozilla.org/preferences-service;1"]                     .getService(Components.interfaces.nsIPrefBranch);    try {      encrypted = pref.getBoolPref("wallet.crypto");    } catch(e) {      dump("wallet.crypto pref is missing from all.js");    }  } catch (ex) {    dump("failed to get prefs service!\n");    pref = null;  }  // determine whether to run in password-manager mode or form-manager mode  var tabBox = document.getElementById("tabbox");  var element;  if (isPasswordManager) {    signonsOutliner = document.getElementById("signonsOutliner");    rejectsOutliner = document.getElementById("rejectsOutliner");    // set initial password-manager tab    element = document.getElementById("signonsTab");    tabBox.selectedTab = element;    // hide form-manager tabs    element = document.getElementById("nopreviewsTab");    element.hidden = "true";    element = document.getElementById("nocapturesTab");    element.hidden = "true"    // load password manager items    if (!LoadSignons()) {      return; /* user failed to unlock the database */    }    LoadRejects();  } else {    nopreviewsOutliner = document.getElementById("nopreviewsOutliner");    nocapturesOutliner = document.getElementById("nocapturesOutliner");    // change title on window    var wind = document.getElementById("signonviewer");    wind.setAttribute("title", wind.getAttribute("alttitle"));    // set initial form-manager tab    element = document.getElementById("nopreviewsTab");    tabBox.selectedTab = element;    // hide password-manager tabs    element = document.getElementById("signonsTab");    element.hidden = "true";    element = document.getElementById("signonsitesTab");    element.hidden = "true";    // load form manager items    LoadNopreview();    LoadNocapture();  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/SignonViewer.js/buggy/extensions/wallet/signonviewer/SignonViewer.js