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:
parent
e9a1a47d28
commit
6a33dfd13a
10 changed files with 127 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue