Bug 720427 - Save as PDF is using an invalid URI method. r=wesj

This commit is contained in:
Margaret Leibovic 2012-01-24 09:16:56 -08:00
Родитель 7fa8b92fd6
Коммит 32a7146600
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -567,7 +567,7 @@ var BrowserApp = {
saveAsPDF: function saveAsPDF(aBrowser) {
// Create the final destination file location
let fileName = ContentAreaUtils.getDefaultFileName(aBrowser.contentTitle, aBrowser.documentURI, null, null);
let fileName = ContentAreaUtils.getDefaultFileName(aBrowser.contentTitle, aBrowser.currentURI, null, null);
fileName = fileName.trim() + ".pdf";
let dm = Cc["@mozilla.org/download-manager;1"].getService(Ci.nsIDownloadManager);