зеркало из https://github.com/mozilla/gecko-dev.git
Bug 720427 - Save as PDF is using an invalid URI method. r=wesj
This commit is contained in:
Родитель
7fa8b92fd6
Коммит
32a7146600
|
@ -567,7 +567,7 @@ var BrowserApp = {
|
||||||
|
|
||||||
saveAsPDF: function saveAsPDF(aBrowser) {
|
saveAsPDF: function saveAsPDF(aBrowser) {
|
||||||
// Create the final destination file location
|
// 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";
|
fileName = fileName.trim() + ".pdf";
|
||||||
|
|
||||||
let dm = Cc["@mozilla.org/download-manager;1"].getService(Ci.nsIDownloadManager);
|
let dm = Cc["@mozilla.org/download-manager;1"].getService(Ci.nsIDownloadManager);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче