我正在寻找 NPAPI 插件吗?

发布于 2024-10-19 12:37:36 字数 385 浏览 10 评论 0原文

我需要为 Firefox、Chrome、Operah 和 Safari 开发一个迷你 ClickOnce 插件(最好是适用于上述所有版本的插件)。

我的插件需要能够以一键式方式运行应用程序。换句话说,通过访问特定的 URL,我的应用程序将在目标计算机上运行(不显示提示/对话框)。不幸的是,ClickOnce 仅适用于 IE,而且我对当前存在的 ClickOnce 插件并不满意。我想开发一个适合我的特定需求的定制 ClickOnce 插件。

我读到了 FireBreath,这对我来说听起来是一个完美的解决方案。我还了解了扩展和插件之间的区别,我认为插件就是我正在寻找的。我只是想向你们确认我走在正确的道路上。我想通过 FireBreath / NPAPI 插件实现什么?插件可以下载可执行文件然后在目标计算机上运行它吗?

I need to develop a mini ClickOnce plugin for Firefox, Chrome, Operah and Safari (preferably, one that works on all of the above).

My plugin needs to be able to run an application in a one-click fashion. In other words, by going to a specific URL, my application will run on the target machine (no prompts / dialogs shown). Unfortunately, ClickOnce is only available with IE, and I am unhappy with the ClickOnce plugins that currently exist. I would like to develop a tailored ClickOnce plugin that suits my specific needs.

I read about FireBreath, which sounded like a perfect solution for me. I also read about the difference between an extension and a plugin and I think a plugin is what I am looking for. I just wanted to make sure with you guys that I am on the right path. Is what I want to achieve possible with FireBreath / NPAPI plugins? Can a plugin download an executable and then run it on a target machine?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

记忆之渊 2024-10-26 12:37:36

是的,NPAPI 将允许您做您想做的事。您可以使用 NPAPI 插件运行任意本机代码,并通过网页端的 JavaScript 对其进行控制。不过,用户必须下载并安装您的插件,因此只有当用户多次使用该插件时才有意义。

不过,显然您必须非常非常小心安全。如果您制作的插件的唯一目的是在没有用户交互的情况下下载和运行代码,那么您需要绝对确定恶意页面无法使用您的插件。

Yes, NPAPI will allow you to do what you want. You can run arbitrary native code using an NPAPI plugin, and control it via JavaScript on the web page side. Users will have to download and install your plugin though, so it only makes sense if this is something users will use more than once.

You'll obviously have to be very, very careful about security though. If you make a plugin whose sole purpose is to download and run code without user interaction then you'll need to be absolutely certain that there's no way for a malicious page to use your plugin.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文