Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

Iskanje po podpori

Izogibajte se prevarantski tehnični podpori. Nikoli vam ne bomo naročili, da pokličete telefonsko številko ali nam pošljete osebne podatke. Sumljivo dejavnost prijavite z gumbom »Prijavi zlorabo«.

Več o tem

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

  • 7 odgovorov
  • 2 imata to težavo
  • 11 ogledov
  • Zadnji odgovor od guigs

več možnosti

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.

Izbrana rešitev

HI ,

Finally got the solution.

plugin.enabledState=0

Preberite ta odgovor v kontekstu 👍 1

Vsi odgovori (7)

več možnosti

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.

več možnosti

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!

več možnosti

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.

več možnosti

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.

več možnosti

Izbrana rešitev

HI ,

Finally got the solution.

plugin.enabledState=0

več možnosti

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;
    }
več možnosti

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." rmcguigan@mozilla.com