(In reply to ekeek from comment #14) > Will this fix consider content-disposition filename when there is not filename.pdf inside the url? > As an example, on firefox 85 this file is renamed as "document.pdf" instead of "Get Adobe Reader.pdf" > https://www.maricopa.gov/DocumentCenter/View/6802/Get-Adobe-Reader-PDF?bidId= If I right click this link and click "Save link as...", I get the correct filename ("Get Adobe Reader.pdf"). I suspect PDF.js is passing its own filename to our filepicker code, when you click the "download" or "save" button inside the PDF viewer. That would need its own fix; please file a separate bug for that (it's not directly related to the one being discussed here).
Bug 1688306 Comment 15 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
(In reply to ekeek from comment #14) > Will this fix consider content-disposition filename when there is not filename.pdf inside the url? > As an example, on firefox 85 this file is renamed as "document.pdf" instead of "Get Adobe Reader.pdf" > https://www.maricopa.gov/DocumentCenter/View/6802/Get-Adobe-Reader-PDF?bidId= If I right click this link and click "Save link as...", I get the correct filename ("Get Adobe Reader.pdf"). I suspect PDF.js (our PDF viewer) is passing its own filename to our filepicker code, when you click the "download" or "save" button inside the PDF viewer (where I can reproduce it being named "document.pdf"). That would need its own fix; please file a separate bug for that (it's not directly related to the one being discussed here).