1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-29 15:47:57 +02:00

Implement support for FileAttachment annotations

This commit is contained in:
Tim van der Meij 2016-02-14 20:44:00 +01:00
parent e9a1a47d28
commit 6a33dfd13a
10 changed files with 127 additions and 9 deletions

View file

@ -337,7 +337,7 @@ ChromeActions.prototype = {
try {
// contentDisposition/contentDispositionFilename is readonly before FF18
channel.contentDisposition = Ci.nsIChannel.DISPOSITION_ATTACHMENT;
if (self.contentDispositionFilename) {
if (self.contentDispositionFilename && !data.isAttachment) {
channel.contentDispositionFilename = self.contentDispositionFilename;
} else {
channel.contentDispositionFilename = filename;