Updating extensions for Firefox 2 编辑

This article provides information that will be useful to developers that wish to update their extensions to work properly under Firefox 2.

Step 1: Update the install manifest

The first step -- and, for most extensions, the only one that will be needed -- is to update the install manifest file, install.rdf, to indicate compatibility with Firefox 2.

Find the line indicating the maximum compatible version of Firefox (which, for Firefox 1.5, might look like this):

 <em:maxVersion>1.5.0.*</em:maxVersion>

Change it to indicate compatibility with Firefox 2:

 <em:maxVersion>2.0.0.*</em:maxVersion>

Then reinstall your extension.

Step 2: Update XUL overlays

Firefox 2 incorporates changes to the default skin. Additionally, some user interface elements have been changed or moved, and it's possible your extension may be affected by these, depending on what your XUL overlays do.

Look over the article Theme changes in Firefox 2 to learn what changes were made that may affect your extension's XUL overlays.

Step 3: Test

Be sure to test your extension carefully on Firefox 2 before you release it to the public. The last thing you want is for the new version of your extension to be responsible for a rash of reports of problems with the just-released version of Firefox!

Step 4: Release

Update your extension's entry on http://addons.mozilla.org. This will ensure that users can find it.

In addition, if your extension provides an updateURL in the install manifest, be sure to update the update manifest so that the new version of your extension can be found automatically by Firefox. By doing this, the first time the user runs your extension after upgrading to Firefox 2, Firefox can offer to automatically install it for them.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:54 次

字数:2641

最后编辑:8年前

编辑次数:0 次

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