Şu anda bakım nedeniyle sitemiz kısıtlı işlevsellik sunmaktadır. Mevcut makaleler sorununuzu çözmediyse ve bize soru sormak isterseniz Twitter’da @FirefoxSupport hesabından ve Reddit’teki /r/firefox subreddit'inden destek gönüllülerimize ulaşabilirsiniz.

Mozilla Destek’te Ara

Destek dolandırıcılığından kaçının. Mozilla sizden asla bir telefon numarasını aramanızı, mesaj göndermenizi veya kişisel bilgilerinizi paylaşmanızı istemez. Şüpheli durumları “Kötüye kullanım bildir” seçeneğini kullanarak bildirebilirsiniz.

Daha Fazlasını Öğren

Firefox 4 not showing newly installed plugins in navigator.plugins array

  • 5 yanıt
  • 11 kişi bu sorunu yaşıyor
  • 4 gösterim
  • Son yanıtı yazan: Xman1234

more options

In Firefox 4 I am trying to detect with javascript if a certain plugin is installed by looking for it in the navigator.plugins array. (https://developer.mozilla.org/en/DOM/window.navigator.plugins)

It seems that newly installed plugins in Firefox 4 do not show up in that array.

I have restarted Firefox, and they show up in Firefox's Add-ons Manager but not in the navigator.plugins array.

I know Firebug works because I used it to show me the contents of of window.plugins.

(Also, you can even see that your script didn't pick up Firebug when you automatically retrieved my list of plugins to populate the "Installed Plugins" field in this post.)

In Firefox 4 I am trying to detect with javascript if a certain plugin is installed by looking for it in the navigator.plugins array. (https://developer.mozilla.org/en/DOM/window.navigator.plugins) It seems that newly installed plugins in Firefox 4 do not show up in that array. I have restarted Firefox, and they show up in Firefox's Add-ons Manager but not in the navigator.plugins array. I know Firebug works because I used it to show me the contents of of window.plugins. (Also, you can even see that your script didn't pick up Firebug when you automatically retrieved my list of plugins to populate the "Installed Plugins" field in this post.)

Seçilen çözüm

I think that plugins installed via an XPI file like an extension should still appear on the about:plugins page. I'm on Linux and that is how the Silverlight (Moonlight) plugin installs.

A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25

Bu yanıtı konu içinde okuyun 👍 0

Tüm Yanıtlar (5)

more options

Does it help if you refresh that list by opening the about:plugins page?

javascript:navigator.plugins.refresh(true);

more options

Thanks for the quick response.

I think I have found the difference. The 'plugin' I was referring to is actually listed as an Add-On in about:addons and it is not listed in about:plugins.

Could it be that in 3.5 it was showing up for me in the plugins[] array because I had copied the .dll into Firefox's plugins directory. But this latest time I installed it using the xpi.

Or is it that in Firefox 3.5 our plugin is actually listed as a Plugin, and now in Firefox 4.0 it is listed as an Addon?

Is there an official way to use javascript to determine if a specific "Addon" is installed?

tones411 tarafından tarihinde düzenlendi

more options

If there is not a way to detect if an addon is installed, is there a way for us to program our plugin so it shows up in the about:plugins page and in the navigator.plugins array?

tones411 tarafından tarihinde düzenlendi

more options

Seçilen çözüm

I think that plugins installed via an XPI file like an extension should still appear on the about:plugins page. I'm on Linux and that is how the Silverlight (Moonlight) plugin installs.

A good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25

more options

tones411 were you able to get this done?