Kit* welcomes you to the den.

A common question in various online spaces among aspiring open source software contributors is:

What project should I contribute to?

The most common answer, and the one I fully support based on my personal experience, is to contribute to a project that you are using yourself. You are more incentivized to improve it and it is more likely that you can find something to work on based on your personal grievances. You can contribute by writing or confirming bug reports, or you can even contribute by writing your own code and passing through the code submission process.

Another — more general — question related to software development is:

How do you approach a huge unknown codebase?

Creating a project from scratch does not really teach you that. Being the creator, you get to know the ins and outs, and your knowledge grows in parallel with the project itself.

Studying an unknown codebase requires different skills and relies a lot more on your previous software development experience. Being able to recognize specific software architecture patterns helps; your own knowledge will directly affect your success rate with some codebases compared to others.

For me, these two questions have lately found a point of confluence.

Firefox.

I have been using Firefox as my main browser for many years now and I would like to contribute to it, but how do I approach this? Am I good enough to tackle this problem?

Browsers are huge and fascinating software projects. Their scope has grown immensely since their inception and they touch many areas of software engineering. HTML parsing, CSS, the DOM, layout, JS engines, graphics, security, UI/UX design — to name a few. The list goes on and on.

It has become a goal of mine to study and understand as much of the Firefox codebase as my skills and determination allow. In theory, and given enough time, there is no limit. This is an exercise for me, so I intend to avoid using large language models for general code comprehension. It’s better to spend a little more time searching for answers than to get them handed to you on a platter. I believe friction is of great importance in the process of knowledge gathering.

That brings us to this series. I want to document my progress and present it without much refinement. This will not be an in-depth tutorial on everything Firefox. Instead, it will be an adventure of exploration. I will try to poke at different parts of the system and see what happens. I will start slow and — hopefully — I will be able to try more ambitious things as time goes by.

This is the story of my quests to understand how the different pieces fit together. If anyone finds some part of it useful, all the better.

So, welcome. And I hope you enjoy it.

It’s time to explore the fox’s den.

Did you like this post?
It is the start of a series of posts that aim to explore the Firefox source code. Check them out here.
*Kit is a trademark of Mozilla.org in the US and other countries. This is an unofficial blog not endorsed or sponsored by, or otherwise affiliated with, Mozilla. ↩