(In reply to WaltS48 [:walts48] from comment #21) > Error Console messages from 94.0b5: > > 17:17:29.906 TypeError: requestor is null PdfStreamConverter.jsm:140:13 > getDOMWindow resource://pdf.js/PdfStreamConverter.jsm:140 > onStopRequest resource://pdf.js/PdfStreamConverter.jsm:1262 > > From 95.0a1, where the PDF wants to be saved: > > 17:01:48.260 TypeError: can't access property "getInterface", requestor is > null 3 PdfStreamConverter.jsm:140:13 > getDOMWindow resource://pdf.js/PdfStreamConverter.jsm:140 > onStopRequest resource://pdf.js/PdfStreamConverter.jsm:1262
This seems to be because the `attachment.contentType` is empty for *new* attachments instead of `application/pdf` when it is read here https://searchfox.org/comm- central/rev/7be97df3877fcaef928606b01d455b2b49d8e9ab/mail/components/compose/content/MsgComposeCommands.js#7610). After this, the error is the same as Bug 1698140. Note that if a message is saved and reopened for editing, any saved pdf attachments will open fine, but any newly added attachments are missing their `contentType`. ~~I think the missing `contentType` is probably a recent regression, since I didn't notice this when reviewing this patch.~~ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1945741 Title: [upstream] PDF attachment opens in Firefox instead of the built-in viewer when opened from the compose window To manage notifications about this bug go to: https://bugs.launchpad.net/thunderbird/+bug/1945741/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs