Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Aug 27, 2020

Conversation

Snuffleupagus
Copy link
Collaborator

Unfortunately the work-around implemented in PR #12286 didn't actually work in all cases, please refer to the previous commit messages.
To prevent opening of PDF attachments from being completely broken for some users, we'll simply force-download them for now in MOZCENTRAL-builds to unbreak things. (Given that the "Open with" dialog now features a "Open with Firefox"-option, this is less bad than it previously would've been.)

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1661259

…hments in Firefox (bug 1661259)"

This reverts commit 1e5d4b6, since it unfortunately doesn't work in all situations.

Please note that I did *successfully* test the patch in a local Firefox build, obviously with an ad blocker installed.
However, I've now tested the *latest* Nightly-build with my default profile, and unfortunately I can still reproduce the bug there!?
…ntType when downloading PDF attachments

This should provide better filetype detection when downloading PDF attachments in the viewer.

Also, to avoid creating the "is PDF file" regular expression more than once it's extracted into a global constant instead.
…9, PR 12286 follow-up)

Unfortunately the work-around implemented in PR 12286 didn't actually work in all cases, please refer to the previous commit messages.
To prevent opening of PDF attachments from being completely broken for some users, we'll simply force-download them for now in MOZCENTRAL-builds to unbreak things. (Given that the "Open with" dialog now features a "Open with Firefox"-option, this is less bad than it previously would've been.)
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/dcbebfa17149fa0/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/dcbebfa17149fa0/output.txt

Total script time: 3.28 mins

Published

@timvandermeij timvandermeij merged commit 6db8907 into mozilla:master Aug 27, 2020
@timvandermeij
Copy link
Contributor

Thank you; that does seem like the best approach for now.

@Snuffleupagus Snuffleupagus deleted the bug-1661259 branch August 27, 2020 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants