Bug 299372 - Content-Disposition headers no longer looked at for Save Link As filename. original-patch=dmose

git-svn-id: svn://10.0.0.236/trunk@249030 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dolske%mozilla.com 2008-04-03 03:08:04 +00:00
parent 9378af0c9a
commit 6779e8b30c
2 changed files with 3 additions and 2 deletions

View File

@ -320,7 +320,8 @@ CHBrowserService::Show(nsIHelperAppLauncher* inLauncher, nsISupports* inContext,
}
NS_IMETHODIMP
CHBrowserService::PromptForSaveToFile(nsIHelperAppLauncher* aLauncher, nsISupports *aWindowContext, const PRUnichar *aDefaultFile, const PRUnichar *aSuggestedFileExtension, nsILocalFile **_retval)
CHBrowserService::PromptForSaveToFile(nsIHelperAppLauncher* aLauncher,
nsISupports *aWindowContext, const PRUnichar *aDefaultFile, const PRUnichar *aSuggestedFileExtension, PRBool aForcePrompt, nsILocalFile **_retval)
{
NSString* filename = [NSString stringWithPRUnichars:aDefaultFile];
NSSavePanel *thePanel = [NSSavePanel savePanel];

View File

@ -22,7 +22,7 @@ HelperAppDlg.prototype = {
aLauncher.saveToDisk( null, false );
},
promptForSaveToFile: function(aLauncher, aContext, aDefaultFile, aSuggestedFileExtension) {
promptForSaveToFile: function(aLauncher, aContext, aDefaultFile, aSuggestedFileExtension, aForcePrompt) {
var result = "";