rem: openDialog("chrome: 
add: openDialog("chrome: 
context: function saveDocument(aDocument){  // When this function is called, we assume we're saving text/html or   // compatible.  var fp = makeFilePicker();  var bundle = getStringBundle();  fp.init(window, bundle.GetStringFromName("SavePageTitle"),           Components.interfaces.nsIFilePicker.modeSave);  appendFiltersForContentType(fp, "text/html", MODE_COMPLETE);      // Determine what the 'default' string to display in the File Picker dialog   // should be.   const stdURLContractID = "@mozilla.org/network/standard-url;1";  const stdURLIID = Components.interfaces.nsIURI;  var uri = Components.classes[stdURLContractID].createInstance(stdURLIID);  uri.spec = aDocument.URL;  var defaultFileName = getDefaultFileName(null, null, uri, aDocument);  fp.defaultString = getNormalizedLeafName(defaultFileName, "text/html");  if (fp.show() == Components.interfaces.nsIFilePicker.returnCancel || !fp.file)    return;    var contentType = fp.filterIndex == 2 ? "text/unicode" : "text/html";  fp.file.leafName = validateFileName(fp.file.leafName);  fp.file.leafName = getNormalizedLeafName(fp.file.URL, contentType);    var persistArgs = {    source      : fp.filterIndex == 0 ? aDocument : uri,//  XXX turn this on when Adam lands the ability to save as a specific content//      type//  contentType : fp.filterIndex == 2 ? "text/unicode" : "text/html";    target      : fp.file,    postData    : getPostData()  };    openDialog("chrome://global/content/helperAppDldProgress.xul", "",               "chrome,titlebar,minizable,dialog=yes",               makeWebBrowserPersist(), persistArgs);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/325566603b921e5fce1ea1b6112427cc45df66ff/contentAreaUtils.js/clean/xpfe/communicator/resources/content/contentAreaUtils.js