plugin.disabled=false; is not working in firefox 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.
Soluție aleasă
Toate răspunsurile (7)
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.
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!
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.
- https://forums.mozilla.org/addons/
- MozillaZine Extension Development: http://forums.mozillazine.org/viewforum.php?f=19
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.
Soluție aleasă
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; }
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