item.init(url, " ", "app-profile", "", "", displayName, url, "", iconURL, "", type, ""); 
item.init(url, " ", "app-profile", "", "", displayName, url, "", iconURL, "", "", type, ""); 
  addDownloads: function (aParams)  {    var numXPInstallItems = aParams.GetInt(1);    var items = [];    for (var i = 0; i < numXPInstallItems;) {      var displayName = aParams.GetString(i++);      var url = aParams.GetString(i++);      var iconURL = aParams.GetString(i++);      var uri = Components.classes["@mozilla.org/network/io-service;1"]                          .getService(nsIIOService).newURI(url, null, null);      var isTheme = uri.QueryInterface(nsIURL).fileExtension.toLowerCase() == "jar";      if (!iconURL) {        iconURL = isTheme ? "chrome://mozapps/skin/extensions/themeGeneric.png" :                            "chrome://mozapps/skin/xpinstall/xpinstallItemGeneric.png";      }      var type = isTheme ? nsIUpdateItem.TYPE_THEME : nsIUpdateItem.TYPE_EXTENSION;      var item = Components.classes["@mozilla.org/updates/item;1"]                           .createInstance(Components.interfaces.nsIUpdateItem);      item.init(url, " ", "app-profile", "", "", displayName, url, "", iconURL, "", type, "");      items.push(item);      // Advance the enumerator      var certName = aParams.GetString(i++);    }    gExtensionManager.addDownloads(items, items.length, false);    updateOptionalViews();    updateGlobalCommands();  },
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/b919fdb92996e96d35037364708ffc0d23c8d1c1/extensions.js/buggy/toolkit/mozapps/extensions/content/extensions.js