add:  var strBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(); strBundleService = strBundleService.QueryInterface(Components.interfaces.nsIStringBundleService);  var extbundle = strBundleService.createBundle("chrome: var filterLabel = extbundle.GetStringFromName("extensionFilter"); fp.appendFilter(filterLabel, "*.xpi");  
context: function installExtension(){  // 1) Prompt the user for the location of the theme to install. Eventually we'll support web locations too.  var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);  fp.init(window, document.getElementById("installExtensions").getAttribute("filepickertitle"), nsIFilePicker.modeOpen);  fp.appendFilters(nsIFilePicker.filterAll);  var ret = fp.show();  if (ret == nsIFilePicker.returnOK)   {    var ioService = Components.classes['@mozilla.org/network/io-service;1'].getService(nsIIOService);    var fileProtocolHandler =    ioService.getProtocolHandler("file").QueryInterface(nsIFileProtocolHandler);    var url = fileProtocolHandler.newFileURI(fp.file).QueryInterface(nsIURL);    var xpi = {};    xpi[decodeURIComponent(url.fileBaseName)] = url.spec;    InstallTrigger.install(xpi);  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/74ba329303a40b0699a2eaf07cfbf69be6790f88/pref-extensions.js/clean/mail/components/prefwindow/content/pref-extensions.js