这篇翻译不完整。请帮忙从英语翻译这篇文章。
对于越来越多的人来说,移动设备是他们上网的主要方式,甚至是唯一方式。Firefox Android版(代号 Fennec)是一个开放的,可定制的,基于标准的浏览器,就像桌面版的Firefox。
Firefox Android版从原生的Android小部件构建用户界面而不是XUL:这极大的提高了性能,特别是启动时间和内存消耗上。
有助于Firefox for Android
关于Firefox for Android项目主要出发点的一些信息参见 “Get Involved” 页。
你可以帮助我们建立和改善 Firefox for Android:
- 帮助我们进行兼容性测试
- 订阅 mobile-firefox-dev 邮件列表
- 参加我们的周三开发会议
- 通过Planet Firefox Mobile, Tumblr 和 Twitter 关注我们的最新信息
- 在 Firefox for Android (Fennec) 上建立和修改
为移动web开发
With Firefox for Android, you've got access a number of APIs that expose the underlying capabilities of the device, closing the gap between the Web and native applications:
To test your web site on Firefox for Android, you can install it on an Android device or run it on your desktop using the Android Emulator.
构建Mobile附加组件
Firefox for Android supports add-ons using the exact same extension system used by all other Gecko-based applications. We did not invent a new add-on system. This means that building an add-on for Firefox on Android is the same process that would be used for desktop Firefox. Add-ons that work with desktop Firefox do not automatically work in Firefox on Android. The user interfaces are just too different.
install.rdf
. The identifier is {aa3c5121-dab2-40e2-81ca-7ea25febc110}
Both classic restart-required and newer restartless add-on approaches are supported. Using the restartless approach is preferred whenever possible because the user experience is far superior to forcing an application restart when installing or removing an add-on.
快速概览
- There is no visible XUL in the UI, so using overlays to try to add or change UI is useless.
- Internal code and objects, like
gBrowser
, do not exist. Look at the Firefox on Androidbrowser.js
file to learn about the internals. Much of the same fundamental functionality exists. - Services like
nsIPromptService
andnsIAlertsService
are implemented to use native Android UI. - There is a simple JavaScript object, called
NativeWindow
, that allows you to manipulate parts of the native Android UI.
获取Firefox for Android的帮助
Documentation and tutorials for using and troubleshooting Firefox for Android are available on the Mozilla Support website.