Merge pull request #12326 from Snuffleupagus/bug-1661259
Revert "Download, rather than opening, PDF attachments in Firefox (bug 1661259, PR 12286 follow-up)"
This commit is contained in:
commit
4caa14b4dc
@ -172,7 +172,6 @@ class PDFAttachmentViewer extends BaseTreeViewer {
|
|||||||
|
|
||||||
const element = document.createElement("a");
|
const element = document.createElement("a");
|
||||||
if (
|
if (
|
||||||
(typeof PDFJSDev === "undefined" || !PDFJSDev.test("MOZCENTRAL")) &&
|
|
||||||
PdfFileRegExp.test(filename) &&
|
PdfFileRegExp.test(filename) &&
|
||||||
!viewerCompatibilityParams.disableCreateObjectURL
|
!viewerCompatibilityParams.disableCreateObjectURL
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user