본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

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

  • 3 답장
  • 1 이 문제를 만남
  • 3 보기
  • 최종 답변자: 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

모든 댓글 (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: