搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

How can I set plugins (Flash, Silverlight, Java) to always run on every site?

  • 4 回覆
  • 1 有這個問題
  • 6 次檢視
  • 最近回覆由 jreese

more options

I'm currently managing several Windows VMs that are used mainly as automated test platforms for web development.

Recently, I have been trying to test Silverlight content in Firefox on these virtual machines. Due to the number of virtual machines and the way automated tests are run, the easiest way to configure Firefox before running a test is by using user.js

Despite writing a number of preferences to user.js, I still can't get Silverlight (or other plugins) to be automatically enabled for all sites.

Below are the relevant preferences I am writing to user.js:

   user_pref("plugin.state.flash", 2);
   user_pref("plugin.state.java", 2);
   user_pref("plugin.state.silverlight", 2);
   user_pref("plugins.click_to_play", false);

I can see in about:config that the settings have been applied, but visiting a site with Silverlight still prompts to block/allow.

So, what settings must be set in user.js to allow plugins to always run on every site?

Thanks!

I'm currently managing several Windows VMs that are used mainly as automated test platforms for web development. Recently, I have been trying to test Silverlight content in Firefox on these virtual machines. Due to the number of virtual machines and the way automated tests are run, the easiest way to configure Firefox before running a test is by using user.js Despite writing a number of preferences to user.js, I still can't get Silverlight (or other plugins) to be automatically enabled for all sites. Below are the relevant preferences I am writing to user.js: user_pref("plugin.state.flash", 2); user_pref("plugin.state.java", 2); user_pref("plugin.state.silverlight", 2); user_pref("plugins.click_to_play", false); I can see in about:config that the settings have been applied, but visiting a site with Silverlight still prompts to block/allow. So, what settings must be set in user.js to allow plugins to always run on every site? Thanks!

由 jreese 於 修改

所有回覆 (4)

more options

Type about:addons<enter> in the address bar to open the Add-ons Manager. Hot key; <Control>(Mac=<Command>) <Shift> A)

On the left side of the page, select Plugins. Make sure the ones you want to use are set to Ask or Allow. ++++++++++++++++++++++++++++++++++++++++ Go to the web page. Once the page is loading, mouse to the address bar and Left click the icon. Select Permissions. In the menu, Make sure the ones you want to use are set to Ask or Allow.

more options

I appreciate the help, FredMcD!

Unfortunately, I am hoping for a way to do this programmatically. I'm having to manage dozens of virtual machines each with the 10 most recent versions of chrome with their own user profiles, so hopefully I won't have to open each one like that. And my understanding is that your procedure will only "always allow" the plugin for pages on that domain, correct?

more options

I called for more help.

more options

FredMcD said

I called for more help.

Thank you so much for the help! Any update on this? I'm happy to provide more information if necessary.