rem: var lastLocation = Components.classes["@mozilla.org/file/local;1"].createInstance().QueryInterface(Components.interfaces.nsIFile); lastLocation.URL = location; 
add: var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);  var lastLocation = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsIFile);  ioService.initFileFromURLSpec(lastLocation) = location;  
context: function SetFilePickerDirectory(filePicker, fileType){  if (filePicker)  {    var location = GetUnicharPref("editor.lastFileLocation."+fileType);    if (location)    {      try {        var lastLocation = Components.classes["@mozilla.org/file/local;1"].createInstance().QueryInterface(Components.interfaces.nsIFile);        lastLocation.URL = location;        // Save current directory so we can reset it in SaveFilePickerDirectory        gFilePickerDirectory = filePicker.displayDirectory;        filePicker.displayDirectory = lastLocation;      }      catch(e) {}    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3d9e878c3473df2bdd78d84808b8168ac005e5aa/editorUtilities.js/clean/editor/ui/composer/content/editorUtilities.js