We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Mear ynfo

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

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

  • 7 antwurd
  • 2 hawwe dit probleem
  • 1 werjefte
  • Lêste antwurd fan 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.

Keazen oplossing

HI ,

Finally got the solution.

plugin.enabledState=0

Dit antwurd yn kontekst lêze 👍 1

Alle antwurden (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

Keazen oplossing

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