从自托管 Firefox 插件中删除安装警告
我正在自行托管一个 Firefox 插件,用户可以从我的网站下载该插件。当用户单击下载我的 Firefox 附加组件时,Firefox 会显示警告:
Firefox 阻止此网站 (example.com) 要求您安装 您计算机上的软件。
有办法阻止显示警告吗?
I am self-hosting a Firefox add-on that users can download from my website. When a user clicks to download my Firefox add-on, Firefox displays a warning:
Firefox prevented this site (example.com) from asking you to install
software on your computer.
Is there a way to prevent the warning from displaying?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该弹出窗口的存在是有原因的,它可以保护用户免受潜在恶意插件的影响。
据我所知,在您这边禁用它是不可能的。
That popup is there for a reason, it protects users from getting potentially malicious addons without noticing.
Disabling it on your side is not possible afaik.
这是由
xpinstall.whitelist.XXXXXXX
首选项控制的,如果您转到about:config
即可看到该首选项。默认情况下,您有允许addons.mozilla.org
的xpinstall.whitelist.add
和允许getpersonas 的
。如果用户认为您的网站值得信赖并且需要经常安装扩展,那么他可以为您的网站添加另一个条目。但通常更有意义的是阅读警告并确认(或不确认)。xpinstall.whitelist.add.36
。 comThis is being controlled by the
xpinstall.whitelist.XXXXXXX
preferences, visible if you go toabout:config
. By default you havexpinstall.whitelist.add
allowingaddons.mozilla.org
andxpinstall.whitelist.add.36
allowinggetpersonas.com
. If the user considers your site trustworthy and needs to install extensions from it frequently then he can add another entry for your site. But typically makes more sense to just read the warning and confirm it (or not).