Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

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

  • 7 답장
  • 2 이 문제를 만남
  • 1 보기
  • 최종 답변자: 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.

선택된 해결법

모든 댓글 (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." rmcguigan@mozilla.com