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

Local PDFs can't be opened in Firefox #6367

Closed
Fironet opened this issue Aug 19, 2015 · 4 comments
Closed

Local PDFs can't be opened in Firefox #6367

Fironet opened this issue Aug 19, 2015 · 4 comments

Comments

@Fironet
Copy link

Fironet commented Aug 19, 2015

Each local PDF opened in Firefox (v42.0a2) launches the Open/Save dialog box. However online PDFs open normally.

Mentioned in another issue but as per guidelines decided to create a separate issue.

@yurydelendik
Copy link
Contributor

Can you check if PDF type association was corrupted in mimeTypes.rdf? (via about:support open Profile Folder) There you shall have a section similar to:

  <RDF:Description RDF:about="urn:mimetype:application/pdf"
                   NC:value="application/pdf"
                   NC:fileExtensions="pdf">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/pdf"/>
  </RDF:Description>

@Fironet
Copy link
Author

Fironet commented Aug 20, 2015

Here are the entries in mimeTypes.rdf in order of appearance:

<RDF:Description RDF:about="urn:mimetype:handler:application/pdf"
                   NC:handleInternal="true"
                   NC:alwaysAsk="false" />

<RDF:Description RDF:about="urn:mimetype:application/pdf"
                   NC:value="application/pdf">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/pdf"/>
</RDF:Description>

<RDF:Description RDF:about="urn:mimetype:application/oct-stream"
                   NC:fileExtensions="pdf"
                   NC:description=""
                   NC:value="application/oct-stream"
                   NC:editable="true">
    <NC:handlerProp RDF:resource="urn:mimetype:handler:application/oct-stream"/>
</RDF:Description>

<RDF:Seq RDF:about="urn:mimetypes:root">
    <RDF:li RDF:resource="urn:mimetype:application/pdf"/>
...
</RDF:Seq>

Do I need that entry you posted listed verbatim in the file?

@yurydelendik
Copy link
Contributor

Notice entry that has NC:fileExtensions="pdf" -- looks like it says your '.pdf' files has 'application/oct-stream' mime type. Remove this entry and modify one above to have NC:fileExtensions.

@Fironet
Copy link
Author

Fironet commented Aug 20, 2015

Ah, thanks so much. Works as expected now. Marked as closed.

@Fironet Fironet closed this as completed Aug 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants