Bug 321517: A text file in a frame is not properly saved (UI patch 2.0), p=sciguyryan, r=neil, sr/a=bzbarsky

This commit is contained in:
mozilla@weilbacher.org 2007-08-24 14:18:40 -07:00
parent b059c895e1
commit d35aa3a819
3 changed files with 3 additions and 3 deletions

View File

@ -397,7 +397,7 @@ nsresult nsHeaderSniffer::InitiateDownload(nsISupports* inSourceData, nsString&
nsIWebBrowserPersist::ENCODE_FLAGS_ABSOLUTE_LINKS |
nsIWebBrowserPersist::ENCODE_FLAGS_NOFRAMES_CONTENT;
}
rv = webPersist->SaveDocument(domDoc, destFile, filesFolder, mContentType.get(), encodingFlags, 80);
rv = webPersist->SaveDocument(domDoc, destFile, filesFolder, null, encodingFlags, 80);
}
return rv;

View File

@ -303,7 +303,7 @@ function internalSave(aURL, aDocument, aDefaultFileName, aContentDisposition,
source : source,
contentType : (!aChosenData && useSaveDocument &&
saveAsType == kSaveAsType_Text) ?
"text/plain" : aContentType,
"text/plain" : null,
target : fileURL,
postData : isDocument ? getPostData() : null,
bypassCache : aShouldBypassCache

View File

@ -396,7 +396,7 @@ function internalSave(aURL, aDocument, aDefaultFileName, aContentDisposition,
source : source,
contentType : (!aChosenData && useSaveDocument &&
saveAsType == SAVETYPE_TEXT_ONLY) ?
"text/plain" : aContentType,
"text/plain" : null,
target : fileURL,
postData : isDocument ? getPostData() : null,
bypassCache : aShouldBypassCache