rem:   if (aDocument) internalSave(aDocument.location.href, aDocument, null, false, null, null); else internalSave(content.location.href,  null, null, false, null, null); 
add: if (!aDocument) { throw "Must have a document when calling saveDocument"; }   var dispHeader = null; try { dispHeader = aDocument.defaultView .QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIDOMWindowUtils) .getDocumentMetadata("content-disposition"); } catch (ex) {  } internalSave(aDocument.location.href, aDocument, null, dispHeader, aDocument.contentType, false, null, null); 
context: function saveDocument(aDocument){  // In both cases here, we want to use cached data because the  // document is currently visible.  if (aDocument)    internalSave(aDocument.location.href, aDocument,                 null, false, null, null);  else    internalSave(content.location.href,  null,                 null, false, null, null);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/5eac9662f0a2c593034bd1ebbfb67e379567f1f2/contentAreaUtils.js/buggy/suite/common/contentAreaUtils.js