Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

How can I get the selected action of content type by javascript from Firefox>Options>Applications?

  • 3 réponses
  • 1 a ce problème
  • 3 vues
  • Dernière réponse par cor-el

more options

I works on my website, and it have to check the PDF file will be opened in which plugins So we have to implement some javascript to check the selected action of Content Type from Tool>Options>Application Do we have any javascript code to check this

I works on my website, and it have to check the PDF file will be opened in which plugins So we have to implement some javascript to check the selected action of Content Type from Tool>Options>Application Do we have any javascript code to check this

Toutes les réponses (3)

more options

You can't check this with code that runs on the server or via JavaScript in the web page.

Note that current Firefox version do not expose the built-in PDF Reader via the navigator.plugin array, so if you can't detect a plugin than maybe assume that the built-in PDF reader is used with Firefox version 19 and later.

  • Bug 840439 - Expose PDF.JS as a plugin navigator.plugins when enabled
more options

my issue is: If my FF installed adobe reader already, but in option>application. I still select "Preview In Firefox" So, I can detect the plugin exist or not but I can not check what selected option In my picture, I installed Adobe and Foxit but the selection is Preview in FF and I expected that I can detect the browser is using Preview in FF to show PDF

more options

You can change the action for Portable Document Format (PDF) from Preview in Firefox to use the Adobe Reader or set to Always Ask in "Firefox > Options/Preferences > Applications".

You can set the pdfjs.disabled pref to true on the about:config page to disable the build-in PDF viewer.
You can also check the value of the plugin.disable_full_page_plugin_for_types pref and remove the application/pdf part if present.

See also: