зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
6a141a8ebd
Коммит
1a154708dc
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче