当サイトはユーザー体験を改善するためのメンテナンスを実施中に機能が制限される予定です。記事を読んでもあなたの問題が解決せず質問をしたい場合は、Twitter の @FirefoxSupport、Reddit の /r/firefox で、サポートコミュニティが皆さんを助けようと待機しています。

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

How to detect if a plugin is waiting for permission?

  • 6 件の返信
  • 1 人がこの問題に困っています
  • 2 回表示
  • 最後の返信者: szanto.cosmin

more options

I have a instance of a NPAPI plugin which is created using the embed element. I need to call some of the functions of the plugin when the page is loaded (<body> onload function) but all the calls fail since the user needs to first allow the plugin to load. When do I know that the user has allowed the plugin to be loaded? Is there a callback which notifies that a plugin can be used?

I have a instance of a NPAPI plugin which is created using the embed element. I need to call some of the functions of the plugin when the page is loaded (<body> onload function) but all the calls fail since the user needs to first allow the plugin to load. When do I know that the user has allowed the plugin to be loaded? Is there a callback which notifies that a plugin can be used?

すべての返信 (6)

more options

With the last Firefox upgrade, some plugins are no longer enabled until you enable it.

Open the Add-ons Manager. Press the <Alt> or <F10> key to bring up the tool bar. Followed by;

Windows; Tools Linux; Edit Mac; application name

Then Add-ons.

Hot key; <Control> (Mac: <Command>) <Shift> A)

On the left side of the page, select Plugins.

BTW; At the top right is a link to check your plugins.

more options

Mozilla is changing the Plugin API and will be eliminating plugin support in the future.Plugins are now considered a "legacy technology".

https://developer.mozilla.org/en-US/Add-ons/Plugins https://developer.mozilla.org/en-US/Add-ons/Plugins/Gecko_Plugin_API_Reference

more options
more options

The advice in that article about making the plugin visible is really important — and a backwards compatibility problem with sites that show a JPEG preview in front of the Flash player that gets cleared one the video loads. Sometimes the only way I realize the problem of video never playing is if I use

View > Page Style > No Style

since that turns off the style rules that overlap the two elements. Hmm...

more options

Hi szanto.cosmin, I think you will need to test for the method before trying to invoke it. You may want to display a message to the user if it isn't available, or use window.setTimeout() to monitor for when the plugin is available.

more options

@cor-el I'm trying to set a script callback to determine when a plugin is activated, but the callback is never called. Here's a simple example in which I reproduced my case.

<!DOCTYPE HTML>
<html>
  <head>
    <title>Test</title>
  </head>
  <script type="text/javascript">
    function pluginCreated() {
      alert("Plugin created");
    }
  </script>
  <body>
    <object id="client" type="application/x-test">
      <param name="callback" value="pluginCreated()">
    </object>
  </body>
</html>

この投稿は cor-el により に変更されました