如何制作 FF 3.6 兼容版本的扩展?

发布于 2025-01-05 21:14:49 字数 117 浏览 4 评论 0原文

我刚刚为 Firefox 构建了一个非常简单的附加组件,但它仅与 FF 8+ 兼容。我想制作一个与 FF 3.6 和 FF 4+ 兼容的版本。是否有适用于这些版本的 SDK,我可以使用它来创建/编译适用于这些版本的版本?

I just built a very simple add-on for Firefox, but it's only compatible with FF 8+. I'd like to make a version that's compatible with FF 3.6 and FF 4+. Is there an SDK for those versions I can use to create/compile a version that'll work with those versions?

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

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

发布评论

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

评论(1

心安伴我暖 2025-01-12 21:14:49

不,即使 Add-on SDK 1.0 也将附加组件标记为仅与 Firefox 4.0b7 及更高版本兼容。主要原因是 Firefox 3.6 不支持在不重新启动的情况下安装附加组件,并且开发在 Firefox 3.6 中使用“传统”方法并在 Firefox 4 及更高版本中无需重新启动安装的附加组件相当复杂。 Firefox 3.6 还存在其他问题。所以你的选择是:

  • 忽略 Firefox 3.6。这应该是最好的做法,因为这个 Firefox 分支很快就会不受支持 - 其已经很低的用户数量将再次显着减少。
  • 创建经典扩展,无需使用 SDK。这可能很重要,具体取决于您的扩展的功能,并且您很可能会失去无需重新启动即可安装的能力(正如我上面所说,在与 Firefox 3.6 兼容的同时保留它是非常重要的)。
  • 使用预发布的附加 SDK 版本,例如 附加SDK 0.9。与当前 SDK 版本的差异可能微不足道,足以让您的扩展正常工作,但您应该预料到自此 SDK 发布以来浏览器更改会出现错误和问题(它将 Firefox 4.0b6 列为最大支持版本)。

No, even Add-on SDK 1.0 marked the add-ons as only compatible with Firefox 4.0b7 and higher. The main reason is that Firefox 3.6 didn't support installing add-ons without a restart and developing an add-on that will use the "conventional" approach in Firefox 3.6 and install without a restart in Firefox 4 and higher is pretty complicated. There are other issues with Firefox 3.6 as well. So your options are:

  • Just ignore Firefox 3.6. This should be the best course of action given that this Firefox branch will become unsupported soon - its already low user count will be significantly reduced again.
  • Create a classic extension, without using the SDK. This might be non-trivial depending on what your extension does, and you will most likely lose the ability to install without restart (as I said above, keeping it while being compatible with Firefox 3.6 is very non-trivial).
  • Use a pre-release Add-on SDK version, e.g. Add-on SDK 0.9. The differences to current SDK versions might be insignificant enough for your extension to work but you should expect bugs and issues due to browser changes since this SDK was released (it lists Firefox 4.0b6 as maximal supported version).
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文