The Mozilla source code can be obtained either by download a source archive, or by using a CVS (source control) client. If you are just starting out, or you wish to build a particular Mozilla product release, downloading a source archive is recommended. Visit here to get Mozilla Source Code Via CVS.
- This code is covered by the Netscape Public License and Mozilla Public License. Please read the terms of these licenses before altering or copying the source code.
- This source code is subject to the U.S. Export Administration Regulations and other U.S. law, and may not be exported or re-exported to certain countries (currently Afghanistan (Taliban controlled areas), Cuba, Iran, Iraq, Libya, North Korea, Sudan and Syria) or to persons or entities prohibited from receiving U.S. exports (including Denied Parties, entities on the Bureau of Export Administration Entity List, and Specially Designated Nationals).
- Before attempting a build, please review the system requirements and build instructions.
The source code for a release can be found on the FTP server directory for that release. For example, the Firefox 1.0.6 source code can be found in the "source" subdirectory on the FTP server.
Source tarballs are packaged as bzipped tarballs. To unpack a tarball from a unix-like shell (or the cygwin shell), type:
tar -xjf <source-file.tar.bz2>
Using WinRAR to unpack source archives will not work. The archive contains zero-length files which are not unpacked properly.
Currently we don't have nightly source tarballs: You can download a trunk nightly source tarball from http://ftp.mozilla.org/pub/mozilla.org where? This tarball will have the CVS files prepopulated so that the tarball can be updated from anonymous CVS.