mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 720427 - Save as PDF is using an invalid URI method. r=wesj
This commit is contained in:
parent
7fa8b92fd6
commit
32a7146600
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user