rem: var persistObj = Components.classes["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"].createInstance(Components.interfaces.nsIWebBrowserPersist); 
add: var persistObj = Components.classes["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"].createInstance(webPersist); 
context: function OutputFileWithPersistAPI(editorDoc, aDestinationLocation, aRelatedFilesParentDir, aMimeType){  gPersistObj = null;  try {    var imeEditor = window.editorShell.editor.QueryInterface(Components.interfaces.nsIEditorIMESupport);    if (imeEditor)      imeEditor.ForceCompositionEnd();    } catch (e) {}  try {    // we should supply a parent directory if/when we turn on functionality to save related documents    var persistObj = Components.classes["@mozilla.org/embedding/browser/nsWebBrowserPersist;1"].createInstance(Components.interfaces.nsIWebBrowserPersist);    persistObj.progressListener = gEditorOutputProgressListener;        var wrapColumn = GetWrapColumn();    var outputFlags = GetOutputFlags(aMimeType, wrapColumn);    persistObj.saveDocument(editorDoc, aDestinationLocation, aRelatedFilesParentDir,                             aMimeType, outputFlags, wrapColumn);    gPersistObj = persistObj;  }  catch(e) { dump("caught an error, bail\n"); return false; }  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e7d04bf78f2d55212c58aafea5e0ac70073dd6e4/ComposerCommands.js/clean/editor/ui/composer/content/ComposerCommands.js