rem: aFI.uri, aDocument); 
add: aFI.uri, aDocument, aContentDisposition); 
context: function initFileInfo(aFI, aURL, aDocument, aContentType){  var docCharset = (aDocument ? aDocument.characterSet : null);  try {    // Get an nsIURI object from aURL if possible:    try {      aFI.uri = makeURI(aURL, docCharset);      // Assuming nsiUri is valid, calling QueryInterface(...) on it will      // populate extra object fields (eg filename and file extension).      var url = aFI.uri.QueryInterface(Components.interfaces.nsIURL);      aFI.fileExt = url.fileExtension;    } catch (e) {    }    // Get the default filename:    aFI.fileName = getDefaultFileName((aFI.suggestedFileName || aFI.fileName),                                      aFI.uri, aDocument);    // If aFI.fileExt is still blank, consider: aFI.suggestedFileName is supplied    // if saveURL(...) was the original caller (hence both aContentType and    // aDocument are blank). If they were saving a link to a website then make    // the extension .htm .    if (!aFI.fileExt && !aDocument && !aContentType && (/^http(s?):\/\//i.test(aURL))) {      aFI.fileExt = "htm";      aFI.fileBaseName = aFI.fileName;    } else {      aFI.fileExt    = getDefaultExtension(aFI.fileName, aFI.uri, aContentType);      aFI.fileBaseName = getFileBaseName(aFI.fileName, aFI.fileExt);    }  } catch (e) {  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/5eac9662f0a2c593034bd1ebbfb67e379567f1f2/contentAreaUtils.js/buggy/suite/common/contentAreaUtils.js