搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

plugin.disabled=false; is not working in firefox 30

  • 7 个回答
  • 2 人有此问题
  • 3 次查看
  • 最后回复者为 guigs

more options

Cc["@mozilla.org/plugin/host;1"] i have used for get plugins now i try to disable all the plugin with plugin.disable=false which work fine in < FF29 but doesn't work in FF 29 & 30.

Cc["@mozilla.org/plugin/host;1"] i have used for get plugins now i try to disable all the plugin with plugin.disable=false which work fine in < FF29 but doesn't work in FF 29 & 30.

被采纳的解决方案

HI ,

Finally got the solution.

plugin.enabledState=0

定位到答案原位置 👍 1

所有回复 (7)

more options

Hi vedangshrimankar, Thank you for your question. Where is this: Cc["@mozilla.org/plugin/host;1"]? are you building Firefox with plugins?

I do know that the extensions in about:config are listed here, some are outdated: http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entrie...

There is a plugin.default.state

I will ask on irc and check back shortly.

more options

Cheers, I confirmed that they do need more information on what you are trying to do. http://mxr.mozilla.org/mozilla-centra.../host this search confirms it should work in the build.

Looking forward to your reply!

more options

Cc["@mozilla.org/plugin/host;1"] still works in the Browser Console (Firefox/Tools > Web Developer), but I don't know what functions and methods this interface provides.

  • nsJSCID {name: "@mozilla.org/plugin/host;1", number: "{23e8fd98-a625-4b08-be1a-f7cc18a5b106}", valid: true}

So you would have to give more details and if this is about code in an extension then you may have to ask elsewhere.

more options

Thanks for your reply, Cc["@mozilla.org/plugin/host;1"] provides many functions like, plugin.name, plugin.description, plugin.disabled.

plugin.name and plugin.description are read only. In FF28 we can disable the plugin using plugin.disabled=true.

But in FF29 or 30 it can't work so i think this may also be read only in 29 and 30.

So, what is the solution to disable installed plugin in 29 or 30?

Thanks in advance.

more options

选择的解决方案

HI ,

Finally got the solution.

plugin.enabledState=0

more options

See:

  • resource://gre/modules/addons/PluginProvider.jsm
    let tags = Cc["@mozilla.org/plugin/host;1"].
               getService(Ci.nsIPluginHost).
               getPluginTags({});

    for (let tag of aTags) {
      if (aVal === true)
        tag.enabledState = Ci.nsIPluginTag.STATE_DISABLED;
      else if (aVal === false)
        tag.enabledState = Ci.nsIPluginTag.STATE_ENABLED;
      else if (aVal == AddonManager.STATE_ASK_TO_ACTIVATE)
        tag.enabledState = Ci.nsIPluginTag.STATE_CLICKTOPLAY;
    }
more options

HI vedangshrimankar, We are happy that you came to a solution. At this time we are doing an investigation on an add on called V-Bates as it is a culprit to a number of crashes in this new version. If you have a copy of these files: "DLL file (probably named libinject2.dll, libredir2.dll or nptnt2.dll). We're trying to get copies of this DLL as well as the version number (from Add/Remove programs) of V-Bates." [email protected]