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

Add workaround for Firefox non-standard PDF download behavior #1120

Merged
merged 1 commit into from
Mar 23, 2022

Conversation

threema-danilo
Copy link
Contributor

@threema-danilo threema-danilo commented Mar 23, 2022

See #1118 for more details.

With this fix, the PDF still opens immediately instead of just downloading, but in a new tab.

@lgrahl do you see any major blocker here? (Yes, I know it's ugly.)

@threema-danilo threema-danilo added the bug It's a bug! label Mar 23, 2022
@threema-danilo threema-danilo self-assigned this Mar 23, 2022
src/helpers.ts Show resolved Hide resolved
@threema-danilo threema-danilo linked an issue Mar 23, 2022 that may be closed by this pull request
@threema-danilo threema-danilo linked an issue Mar 23, 2022 that may be closed by this pull request
Copy link
Contributor

@lgrahl lgrahl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only other thing I wonder is if we want to do version detection, too. Otherwise, LGTM.

@threema-danilo
Copy link
Contributor Author

Thanks! For now I'd try to keep things simple and omit version detection.

@threema-danilo threema-danilo merged commit 6b1eea7 into master Mar 23, 2022
@threema-danilo threema-danilo deleted the 1118-firefox-pdf-download branch March 23, 2022 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug!
Development

Successfully merging this pull request may close these issues.

Firefox: PDFs are opened in same tab
2 participants