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
parent 7fa8b92fd6
commit 32a7146600

View File

@ -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);