X
Tap here to go to the mobile version of the site.

Support Forum

Firefox doesn't remember Applications

Posted

I've set PDF's to open in Options, Applications. I've checked it. Yet each time I click, even the same file!, it asks me how I want to deal with this PDF. Is Firefox allergic to PDF's? What is the big deal? Why can't this browser seem to remember anything? I have this problem in other areas of Firefox. Then I selected my PDF reader to open it and checked it to remember. Of course it asked me the very same thing over and over.

I've set PDF's to open in Options, Applications. I've checked it. Yet each time I click, even the same file!, it asks me how I want to deal with this PDF. Is Firefox allergic to PDF's? What is the big deal? Why can't this browser seem to remember anything? I have this problem in other areas of Firefox. Then I selected my PDF reader to open it and checked it to remember. Of course it asked me the very same thing over and over.

Chosen solution

Try looking for the handlers.json file again. Perhaps your is corrupted and needs to be regenerated. It's a file in your profile folder.

Read this answer in context 0
Quote

Additional System Details

Installed Plug-ins

  • Shockwave Flash 32.0 r0

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0

More Information

FredMcD
  • Top 10 Contributor
4306 solutions 60428 answers

https://support.mozilla.org/en-US/kb/how-to-fix-preferences-wont-save

Note: Some software, like Advanced SystemCare with Surfing Protection, can protect files in the Firefox profile folder against changes. If you have such software then check the settings or uninstall this software.

https://support.mozilla.org/en-US/kb/how-to-fix-preferences-wont-save '''Note:''' Some software, '''like''' Advanced SystemCare with Surfing Protection, can protect files in the Firefox profile folder against changes. If you have such software then check the settings or uninstall this software.
Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
17673 solutions 159874 answers

You can check the handlers.json file in the profile folder to see for what MIME type you created the allow exception.

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

You can check the handlers.json file in the profile folder to see for what MIME type you created the allow exception. You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the <b>about:profiles</b> page. *Help -> Troubleshooting Information -> Profile Directory:<br>Windows: Show Folder; Linux: Open Directory; Mac: Show in Finder *https://support.mozilla.org/en-US/kb/Profiles
Was this helpful to you?
Quote

Question owner

> You can check the handlers.json file in the profile folder to see for what MIME type you created the allow exception.

I looked at about:support and about:profiles and about:config and there was nothing there like that. Must be somewhere else.

The profile folder: C:\Users\19.09.20\AppData\Roaming\Mozilla\Firefox\Profiles\hboxjgox.default-release-2

> You can check the handlers.json file in the profile folder to see for what MIME type you created the allow exception. I looked at about:support and about:profiles and about:config and there was nothing there like that. Must be somewhere else. The profile folder: C:\Users\19.09.20\AppData\Roaming\Mozilla\Firefox\Profiles\hboxjgox.default-release-2
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8837 solutions 72222 answers

Does this happen with all PDFs from all sites, or is there a particular site or two with this problem?

If this happens on particular sites:

You can install my extension, enable logging by clicking the Zzzz button, and then see whether the server is sending a nonstandard Content-Type header, i.e., not application/pdf:

https://addons.mozilla.org/firefox/addon/content-type-fixer/

(If the file name has a .pdf extension, the add-on will switch the Content-Type to application/pdf automatically while it is enabled.)

Does this happen with all PDFs from all sites, or is there a particular site or two with this problem? ''If this happens on particular sites:'' You can install my extension, enable logging by clicking the Zzzz button, and then see whether the server is sending a nonstandard Content-Type header, i.e., not '''application/pdf''': https://addons.mozilla.org/firefox/addon/content-type-fixer/ (If the file name has a .pdf extension, the add-on will switch the Content-Type to application/pdf automatically while it is enabled.)
Was this helpful to you?
Quote

Question owner

It happens on all sites.

It happens on all sites.
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8837 solutions 72222 answers

Chosen Solution

Try looking for the handlers.json file again. Perhaps your is corrupted and needs to be regenerated. It's a file in your profile folder.

Try looking for the '''handlers.json''' file again. Perhaps your is corrupted and needs to be regenerated. It's a file in your profile folder.
Was this helpful to you?
Quote

Question owner

Found it. This is what it says. I'm unfamiliar with this terminology. Sure hope someone here knows what it means.

{"defaultHandlersVersion":{"en-US":4},"mimeTypes":{"application/pdf":{"action":4,"extensions":["pdf"]},"application/download":{"action":4,"extensions":["pdf"]}},"schemes":{"ircs":{"action":2,"ask":true,"handlers":[null,{"name":"Mibbit","uriTemplate":"https://www.mibbit.com/?url=%s"}]},"mailto":{"action":2,"handlers":[{"name":"operamail.exe","path":"D:\\PROGRAM FILES\\EMAIL\\OPERA MAIL USB\\operamail.exe"},{"name":"Yahoo! Mail","uriTemplate":"https://compose.mail.yahoo.com/?To=%s"},{"name":"Gmail","uriTemplate":"https://mail.google.com/mail/?extsrc=mailto&url=%s"}]},"irc":{"action":2,"ask":true,"handlers":[null,{"name":"Mibbit","uriTemplate":"https://www.mibbit.com/?url=%s"}]},"magnet":{"action":4}}}

Found it. This is what it says. I'm unfamiliar with this terminology. Sure hope someone here knows what it means. {"defaultHandlersVersion":{"en-US":4},"mimeTypes":{"application/pdf":{"action":4,"extensions":["pdf"]},"application/download":{"action":4,"extensions":["pdf"]}},"schemes":{"ircs":{"action":2,"ask":true,"handlers":[null,{"name":"Mibbit","uriTemplate":"https://www.mibbit.com/?url=%s"}]},"mailto":{"action":2,"handlers":[{"name":"operamail.exe","path":"D:\\PROGRAM FILES\\EMAIL\\OPERA MAIL USB\\operamail.exe"},{"name":"Yahoo! Mail","uriTemplate":"https://compose.mail.yahoo.com/?To=%s"},{"name":"Gmail","uriTemplate":"https://mail.google.com/mail/?extsrc=mailto&url=%s"}]},"irc":{"action":2,"ask":true,"handlers":[null,{"name":"Mibbit","uriTemplate":"https://www.mibbit.com/?url=%s"}]},"magnet":{"action":4}}}
Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8837 solutions 72222 answers

In relevant part:

"mimeTypes":{
  "application/pdf":{
    "action":4,
    "extensions":["pdf"]
  },
  "application/download":{
    "action":4,
    "extensions":["pdf"]
  }
}

Your Firefox has stored instructions for .pdf files served with two different Content-Type headers: application/pdf and application/download (the second may be used by sites that want to bypass viewing PDFs in a tab).

The action "4" indicates "use system default." So in theory Firefox will open PDFs using your system's default application for opening PDFs.

In relevant part: "mimeTypes":{ "application/pdf":{ "action":4, "extensions":["pdf"] }, "application/download":{ "action":4, "extensions":["pdf"] } } Your Firefox has stored instructions for .pdf files served with two different Content-Type headers: application/pdf and application/download (the second may be used by sites that want to bypass viewing PDFs in a tab). The action "4" indicates "use system default." So in theory Firefox will open PDFs using your system's default application for opening PDFs.
Was this helpful to you?
Quote

Question owner

> So in theory Firefox will open PDFs using your system's default application for opening PDFs.

It seems this browser like to disrupts theories. I'm curious why, in Options, Applications, there is PDF Use Foxit Reader Portable Document Format (PDF) Preview in Firefox

Why 2 of them? Aren't they both the same? Now I notice that if I click the downward arrow on PDF (1st one) and choose "Use other" and select Firefox (since that is the fastest and seems to work just fine), it doesn't store. It just ignores what I chose. Is it rejecting itself? I can pick Chrome and it stores. I can pick Foxit and it stores. When I remove both Chrome and Foxit it still won't let me pick Firefox! Is this really normal? Why would it offer Firefox if it can't take Firefox? This is baffling. I even used Browse to navigate to Firefox in Program Files and it didn't work. Yet anything else seems to. There must be something corrupted somewhere that is blocking Firefox. Yet most everything else in the browser seems to be just great.

Also in the 2nd one it offers "Preview in Firefox" but that is not offered in the 1st one. Maybe this is what you referred to regarding the application dealing with tabs?

> So in theory Firefox will open PDFs using your system's default application for opening PDFs. It seems this browser like to disrupts theories. I'm curious why, in Options, Applications, there is PDF Use Foxit Reader Portable Document Format (PDF) Preview in Firefox Why 2 of them? Aren't they both the same? Now I notice that if I click the downward arrow on PDF (1st one) and choose "Use other" and select Firefox (since that is the fastest and seems to work just fine), it doesn't store. It just ignores what I chose. Is it rejecting itself? I can pick Chrome and it stores. I can pick Foxit and it stores. When I remove both Chrome and Foxit it still won't let me pick Firefox! Is this really normal? Why would it offer Firefox if it can't take Firefox? This is baffling. I even used Browse to navigate to Firefox in Program Files and it didn't work. Yet anything else seems to. There must be something corrupted somewhere that is blocking Firefox. Yet most everything else in the browser seems to be just great. Also in the 2nd one it offers "Preview in Firefox" but that is not offered in the 1st one. Maybe this is what you referred to regarding the application dealing with tabs?

Modified by moz2u

Was this helpful to you?
Quote
jscher2000
  • Top 10 Contributor
8837 solutions 72222 answers

moz2u said

I'm curious why, in Options, Applications, there is

PDFUse Foxit Reader
Portable Document Format (PDF)  Preview in Firefox

The second one corresponds to the application/pdf content type and is the built-in one. The first one must correspond to some other Content-Type.

However, your Options/Preferences page doesn't match up to the code you posted from handlers.json. Preview in Firefox is action 3:

  "application/pdf":{
    "action":3,
    "extensions":["pdf"]
  }

Are you sure that was the correct handlers.json file?

Now I notice that if I click the downward arrow on PDF (1st one) and choose "Use other" and select Firefox (since that is the fastest and seems to work just fine), it doesn't store.

Please do not tell Firefox to "Use other" and open Firefox to open a binary download like a PDF. That can cause an infinite loop: Firefox repeatedly opens empty tabs or windows after you click on a link. The ONLY safe setting for viewing a PDF in Firefox is "Preview in Firefox".

Also in the 2nd one it offers "Preview in Firefox" but that is not offered in the 1st one. Maybe this is what you referred to regarding the application dealing with tabs?

The first one is not application/pdf so Firefox will never suggest "Preview in Firefox" for whatever that is/was.

''moz2u [[#answer-1256709|said]]'' <blockquote> I'm curious why, in Options, Applications, there is <br><br> <table> <tr><td>PDF</td><td>Use Foxit Reader</td></tr> <tr><td>Portable Document Format (PDF) &nbsp;</td><td>Preview in Firefox</td></tr> </table> </blockquote> The second one corresponds to the '''application/pdf''' content type and is the built-in one. The first one must correspond to some other Content-Type. However, your Options/Preferences page doesn't match up to the code you posted from handlers.json. Preview in Firefox is action 3: "application/pdf":{ "action":3, "extensions":["pdf"] } Are you sure that was the correct handlers.json file? <blockquote> Now I notice that if I click the downward arrow on PDF (1st one) and choose "Use other" and select Firefox (since that is the fastest and seems to work just fine), it doesn't store. </blockquote> Please do not tell Firefox to "Use other" and open Firefox to open a binary download like a PDF. That can cause an infinite loop: [[Firefox repeatedly opens empty tabs or windows after you click on a link]]. The ONLY safe setting for viewing a PDF in Firefox is "Preview in Firefox". <blockquote> Also in the 2nd one it offers "Preview in Firefox" but that is not offered in the 1st one. Maybe this is what you referred to regarding the application dealing with tabs? </blockquote> The first one is not application/pdf so Firefox will never suggest "Preview in Firefox" for whatever that is/was.
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.