rem: cookiesOutliner = document.getElementById("cookiesOutliner"); permissionsOutliner = document.getElementById("permissionsOutliner"); 
add: cookiesTree = document.getElementById("cookiesTree"); permissionsTree = document.getElementById("permissionsTree"); 
context: function Startup() {  // arguments passed to this routine:  //   cookieManager   //   cookieManagerFromIcon  //   imageManager   // xpconnect to cookiemanager/permissionmanager interfaces  cookiemanager = Components.classes["@mozilla.org/cookiemanager;1"].getService();  cookiemanager = cookiemanager.QueryInterface(Components.interfaces.nsICookieManager);  permissionmanager = Components.classes["@mozilla.org/permissionmanager;1"].getService();  permissionmanager = permissionmanager.QueryInterface(Components.interfaces.nsIPermissionManager);  // intialize gDateService  if (!gDateService) {    const nsScriptableDateFormat_CONTRACTID = "@mozilla.org/intl/scriptabledateformat;1";    const nsIScriptableDateFormat = Components.interfaces.nsIScriptableDateFormat;    gDateService = Components.classes[nsScriptableDateFormat_CONTRACTID]      .getService(nsIScriptableDateFormat);  }  // intialize string bundle  cookieBundle = document.getElementById("cookieBundle");  // determine if labelling is for cookies or images  try {    var tabBox = document.getElementById("tabbox");    var element;    if (!isImages) {      element = document.getElementById("cookiesTab");      tabBox.selectedTab = element;    } else {      element = document.getElementById("cookieviewer");      element.setAttribute("title", cookieBundle.getString("imageTitle"));      element = document.getElementById("permissionsTab");      element.label = cookieBundle.getString("tabBannedImages");      tabBox.selectedTab = element;      element = document.getElementById("permissionsText");      element.value = cookieBundle.getString("textBannedImages");      element = document.getElementById("cookiesTab");      element.hidden = "true";    }  } catch(e) {  }  // load in the cookies and permissions  cookiesOutliner = document.getElementById("cookiesOutliner");  permissionsOutliner = document.getElementById("permissionsOutliner");  if (!isImages) {    loadCookies();  }  loadPermissions();  window.sizeToContent();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/07d96867f11683becf5e1a6ca5e64e6a9324c957/CookieViewer.js/clean/extensions/wallet/cookieviewer/CookieViewer.js