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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论