Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

[Unable to open pdf file with content-type: application/octet-stream] #15869

Closed
Zonnetj3 opened this issue Oct 13, 2020 · 1 comment
Closed
Labels
🐞 bug Crashes, Something isn't working, ..

Comments

@Zonnetj3
Copy link

Zonnetj3 commented Oct 13, 2020

This bug is reported after posting on the support forum:
https://support.mozilla.org/nl/questions/1307518

I get the error "could not open file" after downloading a pdf file in Firefox for ANDROID. This happens for most, but not all, pdf files. For example this file: https://manuals.coolblue.nl/0f/aeg-l8fb86es-aeg-t8db86es.pdf
It seems Firefox does not use the default Android pdf viewer. In chrome the file opens perfectly.
Before this error occurred the pdf file was opened in a navigation app, totally useless.
I tried many things:

  • Changing default pdf app in android
  • Removing the navigation app.
  • Reinstalling Firefox
  • Installing Firefox nightly,
  • Trying to Change the default pdf viewer in about:config (not possible in Firefox daylight). Unable to change this.

The issue is related to the information of pdf :

  • content-type: application/octet-stream

Why doesn't Firefox use the default pdf viewer of android in this case?

Quote from Jscher 2000 in support forum:
"This is a generic executable file type that sites sometimes associate with PDFs to force them to be downloaded instead of opened in a tab. I think that is causing the problem that Firefox doesn't open them in an appropriate application. It would be preferable if Firefox were to "forget" that useless information and ask Android what to do with a .pdf file."

I hope this issue can be resolved. Thanks!

┆Issue is synchronized with this Jira Task

@Zonnetj3 Zonnetj3 added the 🐞 bug Crashes, Something isn't working, .. label Oct 13, 2020
@github-actions github-actions bot added the needs:triage Issue needs triage label Oct 13, 2020
@liuche
Copy link
Contributor

liuche commented Oct 14, 2020

Duping to #15119

@liuche liuche closed this as completed Oct 14, 2020
@kbrosnan kbrosnan removed the needs:triage Issue needs triage label Nov 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, ..
Projects
None yet
Development

No branches or pull requests

3 participants