Merge pull request #784 from arturadib/fix-783

Replacing URL flag format for download
This commit is contained in:
vingtetun 2011-11-08 17:04:43 -08:00
commit c15311c8eb
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ pdfContentHandler.prototype = {
}
let targetUrl = aRequest.URI.spec;
if (targetUrl.indexOf('?pdfjs.action=download') >= 0)
if (targetUrl.indexOf('#pdfjs.action=download') >= 0)
throw NS_ERROR_WONT_HANDLE_CONTENT;
aRequest.cancel(Cr.NS_BINDING_ABORTED);

View File

@ -139,7 +139,7 @@ var PDFView = {
},
download: function pdfViewDownload() {
window.open(this.url + '?pdfjs.action=download', '_parent');
window.open(this.url + '#pdfjs.action=download', '_parent');
},
navigateTo: function pdfViewNavigateTo(dest) {