rem: dump(fp.file.path + '\n'); installTheme(fp.file.path); 
add: 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); InstallTrigger.installChrome(InstallTrigger.SKIN, url.spec, decodeURIComponent(url.fileBaseName)); 
context: function installSkin(){  // 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("installSkin").getAttribute("filepickertitle"), nsIFilePicker.modeOpen);  fp.appendFilters(nsIFilePicker.filterAll);  var ret = fp.show();  if (ret == nsIFilePicker.returnOK)   {    dump(fp.file.path + '\n');    installTheme(fp.file.path);  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/9dbf14d06d656f4d0de67a6baa037fc41690eec3/pref-themes.js/clean/mail/components/prefwindow/content/pref-themes.js