Contributing to the Mozilla codebase

This translation is incomplete. Please help translate this article from English

 هذه الصفحة ينبغي أن توجه لكم من خلال الخطوات الأولى للمساهمة في موزيلا. ترحيب، ونحن سعداء لرؤيتك! :)

بحاجة الى مساعدة؟

يرحب مجتمع موزيلا دائما القادمين الجدد إلى وسطنا. إذا كان لديك أي صعوبات في أي مكان، يمكنك أن تطلب

إذا كنت لا تزال تواجه مشاكل، يرجى الاتصال كايل هيوي في

ما هي المهارات التي أحتاجها؟


موزيلا هو مشروع كبير ونحن سعداء لاستقبال المساهمين مع مهارات مختلفة جدا.

  • إذا كنت تعرف C + +، على سبيل المثال، يمكنك المساهمة في طبقات الأساسية من فايرفوكس، فايرفوكس نظام التشغيل، وغيرها من منتجات موزيلا.
  • إذا كنت تعرف JavaScript أو HTML/CSS, يمكنك المساهمة في الواجهة الأمامية لفايرفوكس Firefox, أو في Gaia, طبقة التطبيق لفايرفوكس أو.إس Firefox OS.
  • إذا كنت تعرف Java, يمكنك المساهمة في Firefox Mobile.
  • إذا كنت تعرف Python, يمكنك المساهمة في خدمات الويب, بما فيها Firefox Sync أو Persona.
  • إذا كنت تعرف Make, shell, Perl, أو Python, يمكنك المساهمة في في نظام البناء(build system).
  • إذا كنت تعرف C, يمكنك المساهمة في عدد من  low-level و third-party libraries التي نستعملها كجزء من Mozilla codebase.
  • و هناك أيضا العديد من الطرق للمساهمة في مهمة موزيلا دون أن تعرف البرمجة. إذا أحببت أن تساهم في التصميم, الدعم, الترجمة, التجريب, أو مهمة أخرى , طالع صفحة فرص التطوع.

Perhaps you do not know programming yet but you want to start learning? That's great too, the Webmaker program is for you, and there are more resources available on the Mozilla Developer Network!

Step 1 - Build Firefox, Firefox OS, Thunderbird, or another application

If you wish to contribute to Firefox, Thunderbird, or Firefox OS, follow our set of simple instructions to build Firefox, or to build Thunderbird, or to build Firefox OS. This is straightforward, but may take some time, so you may want to move on to the next steps while it builds. More build instructions can be found here.

For other products, you may not need to build anything.

Step 2 - Find something to work on

Fix your pet peeve

If there's something you'd like to fix about Firefox, Thunderbird, or your other favorite Mozilla application, this can be a good place to start. There are a number of ways to do this:

Find a bug we've identified as being good for newcomers

Mozilla developers label certain bugs as being an easy bug to get newcomers acquainted with our processes:

  • Mentored bugs have a mentor who commits to helping you every step of the way. Generally, there should be enough information in the bug to get started. Whenever you need help, contact the mentor over IRC, in the bug itself, or by email. When you've completed the bug, they will help you get your code into the tree.
  • "Good" first bugs may be a little stale, but at some point in their lives we considered that they would be a good first step for newcomers to Mozilla. We are in the process of migrating these bugs to mentored bugs, but more recent "good first bugs" may be good starting points if there are no appropriate mentored bugs.
  • Student Projects are larger projects, such as might be suitable for a university student for credit. Of course, if you are not a student, you should still feel free to fix one of these bugs. We maintain two lists, one for projects based on the existing codebase and one for implementing new applications.

Step 3 - Fix the bug

We leave this in your capable hands. We have some resources to help you here too:

Step 4 - Get your code reviewed

Once you fix the bug, attach a patch to the bug and ask for review. Do this by clicking the Details link on your attachment, then setting the review flag to ? and entering the reviewer's bugzilla ID in the text field that appears (either their email address or the :UniqueName they provide). It is very important to attach a bugzilla ID, or the request will be missed. So how do you figure out the right person to ask for a review?

  • If you have a mentored bug, ask your mentor; they will know or can find out easily.
  • Run hg blame and look at the people who have touched the functions you've worked on - they will be a good candidate.
  • The bug itself may contain a clear indication of the best person to ask for a review.
  • Are there related bugs on similar topics? In that case, the reviewer in those bugs might be a good choice.
  • We have an out of date list of modules which lists peers and owners for the module, some of whom will be a good reviewer. In the worst case, set the module owner as the reviewer, and ask them in the comment to pick someone better if they don't have time.

Step 4b - Follow it up

If you've asked for review, but the reviewer hasn't said anything for a few days, don't be afraid to ping them. Just add a comment to the bug saying 'review ping?', and another a few days later if they still haven't responded. If they don't respond after that, ask for help in #introduction or #developers.

Step 5 - Respond to the review

Often, a reviewer will ask for changes, perhaps minor, perhaps major. In either case, fix what the reviewer asks for; if you're unsure how, be sure to ask! Attach the new patch to the bug again, and ask for review again from the same reviewer. If they give you an r+ that means that your bug is accepted into the tree!

Step 6 - Actually get the code into the tree

Since you don't yet have the ability to push the code into the tree, you should ask somebody for help. If you have a mentor, ask them. If not, ask the reviewer. If the reviewer is too busy, mark that a commit is needed by adding the checkin-needed keyword. A friendly person should be along within a few days and push the code to the repository, and they will update the bug as required.

Step 7 - Repeat

Congratulations, you've fixed your first bug. Now go back to step 3 and repeat. Now that you've got your first bug in, you should request level 1 access to the repository so that you can push to the tryserver and get automated feedback about your changes on multiple platforms. After fixing a nontrivial number of bugs, you should request level 3 access so that you can push your own code after it has been r+ed.

More information

We're in the process of improving information on this page for newcomers to the project. We'll be integrating some information from these pages soon, but until then you may find them interesting in their current form: