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

Exercises page PDF doesn't show up in FireFox on Windows #23

Open
alexgleason opened this issue Apr 15, 2018 · 1 comment · Fixed by #25
Open

Exercises page PDF doesn't show up in FireFox on Windows #23

alexgleason opened this issue Apr 15, 2018 · 1 comment · Fixed by #25

Comments

@alexgleason
Copy link
Contributor

On Norm's computer we couldn't get the PDF to render in the exercises page. I've just tested it in FireFox on Windows 7 and it showed up fine. Trying to pinpoint what exactly was happening on Norm's computer so we can handle it. At worst, we might have to rethink how we're embedding PDFs.

I've set Content-Disposition: inline in the HTTP header of the PDF. One would think this is enough. I'm trying to reproduce the problem, but can't.

It was happening at this URL (and others like it): https://project-tier-dev.herokuapp.com/tier-classroom/sample-exercises/sample-exercises/alcohol-exercise/

@alexgleason
Copy link
Contributor Author

Norm is running Windows 10 and Firefox 59.0.2 (64-bit). Using BrowserStack I'm running FireFox 59 on Windows 10 and seeing this:

bs_win10_firefox_59 0

The difficult thing about this issue is that I can't reproduce the problem. I witnessed it in person, however. The issue seemed to be that FireFox disobeyed the HTTP attachment key. I inspected the request and observed that is was sending back attachment: inline but despite this it was being downloaded anyway.

Any embed solution I come up with will have the same issue since this is happening on an HTTP level. The only thing I can think of is to embed the files with a third-party service like Google Docs, which in addition to the freedom/privacy implications seems fragile, inflexible, and undesired.

First, I really want to know what is different about Norm's FireFox install compared to the one in BrowserStack. Knowing that could help us address the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant