Working with Mozilla source code 编辑

The articles below will help you get your hands on the Mozilla source code, learn to navigate the code, and how to get the changes you propose checked into the tree.

Getting the code from the Mercurial repository
If you plan to contribute to the Mozilla project, the best way to get the code is to check it out from the version control repository.  Learn how to do that here.
Getting a pre-configured Mozilla build system virtual machine
This is the easiest way to get started: use a VirtualBox virtual machine which is already configured with a complete build environment for you to use. Just boot the VM and build!
Downloading the source code
If you want to fetch the code for a specific release of a particular Mozilla product, you may prefer to download a source code archive.
Viewing and searching Mozilla source code online
Learn how to use Searchfox, Mozilla's online search and browsing tool for accessing the source code.  This isn't a good way to download the code, but is a great way to search it.
Navigating the Mozilla source code
Learn about the various folders in the Mozilla source tree, and how to find what you're looking for.
Bugs for newcomers
If you are new to the project and want something to work on, look here.
Mozilla Coding Style Guide
The code style guide provides information about how you should format your source code to ensure that you don't get mocked by the reviewers.
Interface development guide
Guidelines and documentation for how to create and update XPCOM interfaces.
The Firefox codebase: CSS Guidelines
This document contains guidelines defining how CSS inside the Firefox codebase should be written, it is notably relevant for Firefox front-end engineers.
SVG Cleanup Guide
Guidelines and best practices for shipping new SVGs.
Try Servers
Mozilla products build on at least three platforms. If you don't have access to them all, you can use the try servers to test your patches and make sure the tests pass.
Creating a patch
Once you've made a change to the Mozilla code, the next step (after making sure it works) is to create a patch and submit it for review. This article needs to be updated fully for Mercurial.
Getting commit access to the source code
Feel ready to join the few, the proud, the committers?  Find out how to get check-in access to the Mozilla code.
Getting older Mozilla code from CVS
Older versions of the Mozilla source code, as well as the current versions of NSS and NSPR, are kept in a CVS repository.  Learn about that in this article.

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

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

发布评论

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

词条统计

浏览:144 次

字数:4251

最后编辑:7 年前

编辑次数:0 次

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