Revert "Download, rather than opening, PDF attachments in Firefox (bug 1661259, PR 12286 follow-up)"

This reverts commit 2a0de0b66b41c345cd357cbb828b3ca6f49fd395.

I can no longer reproduce these issues locally, and if ad blockers are still interfering with this functionality we really ought to pursue a mozilla-central solution to the problem instead. (Also, I'm no longer getting an "Open with Firefox"-option in the "Open with"-dialog making the PDF attachments experience worse for all users.)
This commit is contained in:
Jonas Jenwald 2020-09-04 12:03:27 +02:00
parent 05fede43f7
commit a52e229ca6

View File

@ -172,7 +172,6 @@ class PDFAttachmentViewer extends BaseTreeViewer {
const element = document.createElement("a");
if (
(typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) &&
PdfFileRegExp.test(filename) &&
!viewerCompatibilityParams.disableCreateObjectURL
) {