Search completed in 1.18 seconds.
Localizing with Mercurial
In Mozilla, we use the the
Mercurial version control system (Hg) to manage our source code and localizations.
Mercurial allows localizers to work locally (on their machines) and then push (an Hg term) changes to a remote repository, which usually is hosted on the Mozilla servers (hg.mozilla.org). Localizing current versions of Firefox, Thunderbird and SeaMonkey includes working with
Mercurial. If the documentation is incomplete or you have questions, please drop by the #l10n or #hg channels on irc.mozilla.org. The
Mercurial FAQ are also worth a read, should you run into trouble. ...
...ervers (hg.mozilla.org). Localizing current versions of Firefox, Thunderbird and SeaMonkey includes working with
Mercurial. If the documentation is incomplete or you have questions, please drop by the #l10n or #hg channels on irc.mozilla.org. The
Mercurial FAQ are also worth a read, should you run into trouble. For the eager and quick, below you'll find instructions on installing and configuring
Mercurial, instructions on receiving an Hg account commit priviledges, as well as a few tasks you can complete without account priviledges. Installing
Mercurial Follow the instructions below to install
Mercurial on your system. ...
...Choose the appropriate command for your distribution and make sure to run as root. ...
...And 16 more matches
Application Translation with Mercurial
eleases/l10n/mozilla-aurora/de/ Copy that url to the clipboard. Copy the repository to your computer by running the following command: hg clone http://hg.mozilla.org/releases/l10n/mozilla-aurora/de/ de-mozilla-aurora This should proceed pretty fast. On Windows, you can paste the url by calling the Paste command from the window menu in the upper left corner of the window. ...
... Now go in the file system to the file and open it in your favorite text editor. Windows users can use e.g. Notepad++. ...
... Now go in the file system to the file and open it in your favorite text editor. Windows users can use e.g. Notepad++. ...
...And 6 more matches
Tamarin mercurial commit hook - Archive of obsolete content
It is highly recommended that all developers enable the
mercurial commit hook for tamarin. The hook is located in the tamarin-redux repository in the file utils/hooks/tamarin-commit-hook.py This is a simple
mercurial hook that checks the following filetypes ('.cpp', '.h', '.as', '.abs', '.py') for the following: Tabs anywhere in the line Trailing whitespace Windows line endings (\r\n) "MARK_SECURITY_CHANGE" - Looks for this text and warns user as security changes should NOT be checked into the public tamarin-redux repository. Installing the commit hook The easiest way to implement the hook is to sync to the tip of tamarin-redux then add the following to your tamarin-redux/.hg/hgrc file (or to ~/.hgrc to implement for all local repos): [hooks] pretxncommit.commit = python:/path/to/tamari...
Localizing with Koala
is next to the right of the location bar, and by default points to the Google search. If you click on the highlighted arrow pointing down while reading this tutorial on MDC, you will see two string that need to be translated: Add "MDC Search" Manage Search Engines... There is also a tooltip that appears when you hover over the magnifying glass icon on the right side of the bar. Requirements
Mercurial, Linux, Windows or Mac OS X. Instructions Preparation Install Komodo Edit. Install Koala extension. Go to Tools > Add-ons. Search for "Koala". Click Add to Komodo Edit... Restart Komodo when the installation is complete. You should see a new button in Komodo's toolbar, with two options: Startpage and Management. Before you can use them, you need to create a new Koala project. Creating a n...
...your project (e.g. l10n.kpf). Choose the directory in which the project will live in (e.g. C:\mozilla\l10n on Windows, /home/user/mozilla/l10n on Linux or /Users/user/mozilla/l10n on Mac OS X). Due to a bug in Koala (bug 21930), it is recommended that you don't choose a path that contains spaces (like C:\Documents and Settings\user\...). Click "Open" to create the project. Koala will check for
Mercurial. Make sure that your
Mercurial installation is in your system's $PATH. Setup wizard will open. Configure the Application Choose "Firefox" as the application. Version: 3.6. Appname: browser. Included locale: en-US (this is the original locale you're translating from). Leave Location empty for now. Check the "
Mercurial" checkbox. Note that you don't have to edit the Location field, it automat...
...URL: http://hg.mozilla.org/releases/mozilla-1.9.2. Branch: default. ...
...And 10 more matches
MCD, Mission Control Desktop, AKA AutoConfig - Archive of obsolete content
below we start to debug this by rebuilding a thunderbird from Comm-...
...below we start to debug this by rebuilding a thunderbird from Comm-central-source-code (
mercurial). ...
... to build from sources in case some feature were missing in public packages based on bug 295329 , since TB 3.0.X autoconfig doesn't work anymore. according to the discussion in mozilla.dev.apps.thunderbird , change from CVS to
Mercurial and recent changes to the nsLDAPURL code might have borken autoconfig . ...
...And 4 more matches
Index
and summary 1 Localization at Mozilla Landing, Localization, Mozilla, Translation, l10n Localization (L10n) is the process of translating software user interfaces from one language to another and adapting it to suit a foreign culture. These resources are for anyone with an interest in the technical aspects involved in localization. ...
...tion, Mozilla, Translation, l10n Localization (L10n) is the process of translating software user interfaces from one language to another and adapting it to suit a foreign culture. These resources are for anyone with an interest in the technical aspects involved in localization. ...
...ved in localization. 2 Application Translation with
Mercurial Android, Draft, Editing, Firefox, Lightning, Localization,
Mercurial, SeaMonkey, Translate, patch, thunderbird First, get the required programs to compile Mozilla applications like Firefox and Thunderbird from Build Instructions. This is only necessary once. 3 Bootstrapping a new locale Localization,
Mercurial, Translate, bit bucket (see also https://developer.mozilla.org/en/Create_a_new_localization) 4 Encodings for localization files Internationalization, Localization When creating a localization for Mozilla products, it's important to be aware of the encoding of the files that you generate. 5 Index Localization Found 42 pages: 6 L10n Checks ...
...And 3 more matches
Localizing with Mozilla Translator
ew product (or several ones; see next recipe to know why), run File -> Update on them (you'll get a list of all the strings) and then run Edit -> Autotranslate. Most of the strings will be automatically filled, although if you do this you should review them, because for en-US strings with several possible translations, MT will choose one of them, which could not be the one you want. ...
...uld not be the one you want. From CVS to
Mercurial in MT So, you have a Firefox product in MT with a Platform neutral and, inside it, several directories (''components'' in MT terminology) more or less like the second sample above, checked out from CVS. Now, you want to start working directly on mozilla-central (and l10n-central). What should you do? The first thing to do, once you have your
Mercurial local repository up and working, is create a new product... or more. With good oldie CVS, you could checkout just the locale content and, even more, you could checkout just ''the locale directories'' you were interested in. With
Mercurial, partial checkouts are not possible, so you have your own Mozilla repository full copy (there are alternate solutions; read on). A bit of history on MT MT h...
... of the many problems that MT had to solve was how to fit a directory structure in what had been designed for five JARs, and the ''patch'' consisted of providing a ''read from dir instead of JAR'' and ''put everything inside Platform neutral''. That has worked well (OK, more or less) :-) as long as you could instruct MT to use just one ''root'' L10n directory, but this is no longer the case with
Mercurial. MT could be changed for a MT product to have a list of ''root'' directories instead of just one, and maybe someday it will do, but it will probably won't happen before SeaMonkey 1.1.x dies (and SeaMonkey 2.0 finally conquers the web, if I may add). ;-) Enough chatting, what's next? Anyway, we need to work around the full-fledged repository problem. These are your options: Create one pro...
...And 2 more matches
Release phase
you've selected your L10n tools and projects, done some localization and even some testing! Now you're ready for the final phase: becoming an official L10n release. Here, we'll continue to stay true to the original intent of this guide and only present you with the technical information you need to become an official release. We'll primarily focus on getting your release repository setup and the
Mercurial commands you'll need to know to use that repository. For more information on the release part of the L10n process, visit the Mozilla wiki here. Your official release repository Now that your locale has been registered, the localization files will live on Mozilla
Mercurial server at hg.mozilla.org. Depending on which branch you work on, the URL of your repository might look like this: http://hg.mo...
...s: http://hg.mozilla.org/releases/l10n-central/x-testing If you followed the Koala or plain text approach, you probably already have a local clone of the repository. Otherwise, in order to be able to make any changes to the localization files, you will need to clone the repository on your local machine and work in the local clone. There are two different protocols you can use to connet with your
Mercurial repository: HTTP and SSH. Be advised that there's an important distinction between them. You can pull using both, but you can only push through SSH. Consequently, if you already have a local clone that you pulled using HTTP, you'll need to modify a config file to tell
Mercurial to push through SSH. Let's go over configuring your connection protocols. Configuration Before you try pushing, you need...
...following lines to your ~/.ssh/config file, replacing user@host.domain with your Mozilla LDAP account name: Host hg.mozilla.org User user@host.domain If you have already cloned the remote repository using the HTTP protocol using this command: $ hg clone http://hg.mozilla.org/releases/l10n-central/x-testing then you will need to edit the .hg/hgrc file (inside the x-testing local clone) to tell
Mercurial to push using SSH. Your .hg/hgrc file shoud look like this (add the emphasized line): [paths] default = hg.mozilla.org/releases/l10n-central/x-testing default-push = ssh://hg.mozilla.org/releases/l10n-central/x-testing If you haven't already cloned the remote repository, enter this command: hg clone ssh://hg.mozilla.org/releases/l10n-central/x-testing
Mercurial will let you know that it's c...
...And 2 more matches
Building Mozilla XForms - Archive of obsolete content
Before you can start building the xforms extension, you should check your Mozilla build environment by doing a regular Firefox build. Have a look at the Build Instructions for detailed information for your platform. ...
... Before you can start building the xforms extension, you should check your Mozilla build environment by doing a regular Firefox build. Have a look at the Build Instructions for detailed information for your platform. ...
...Firefox 3.5 and up: get the source code If you want to build XForms for Firefox up to 3.0, you already have the required source code, it's part of your CVS checkout. Skip to the next section. Starting with ...
...s schema-validation mostly works upcoming 0.8.7 release If you have your first working Firefox build, you can go on with building the xforms extension. Firefox 3.5 and up: get the source code If you want to build XForms for Firefox up to 3.0, you already have the required source code, it's part of your CVS checkout. Skip to the next section. Starting with Firefox 3.5, you need to do two more
Mercurial checkouts: cd extensions hg clone http://hg.mozilla.org/xforms hg clone http://hg.mozilla.org/schema-validation That's it, you now have everything you need to get started. Configure your build: the .mozconfig file Mozilla uses a file called .mozconfig in your home directory to store the build configuration. For xforms, you will need to add the following line: ac_add_options --enable-extensions="d...
Simple SeaMonkey build
s is both I/O- and CPU-intensive, and can take a long time to build even on modern hardware. Minimum and recommended hardware requirements for Mozilla development are: Recommended: 8GB of RAM (having only 4GB RAM and 4GB swap may give memory errors during compile) 35 GB free disk space. This will accomodate Visual Studio 2013 Community Edition, the required SDKs, the MozillaBuild package, the
Mercurial source repository and enough free disk space to compile. A fast SSD is recommended; the Firefox build process is I/O-intensive. High speed internet Installing build tools If your system is not listed below, see the build prerequisites page. Debian Linux: # this one-liner should install all necessary build deps sudo aptitude install zip
mercurial libasound2-dev libcurl4-opens...
...ibxt-dev libiw-dev libidl-dev mesa-common-dev autoconf2.13 yasm libgtk2.0-dev libdbus-1-dev libdbus-glib-1-dev python-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libpulse-dev Ubuntu Linux # for Ubuntu 12.04 LTS (Precise Pangolin), replace the following line with: sudo apt-get build-dep thunderbird sudo apt-get build-dep seamonkey sudo apt-get install zip unzip
mercurial g++ make autoconf2.13 yasm libgtk2.0-dev libglib2.0-dev libdbus-1-dev libdbus-glib-1-dev libasound2-dev libcurl4-openssl-dev libnotify-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libiw-dev libxt-dev mesa-common-dev libpulse-dev Fedora Linux CentOS RHEL: sudo yum groupinstall 'Development Tools' 'Development Libraries' 'GNOME Software Development' sudo yum...
... autoconf2.13 yasm libgtk2.0-dev libglib2.0-dev libdbus-1-dev libdbus-glib-1-dev libasound2-dev libcurl4-openssl-dev libnotify-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libiw-dev libxt-dev mesa-common-dev libpulse-dev Fedora Linux CentOS RHEL: sudo yum groupinstall 'Development Tools' 'Development Libraries' 'GNOME Software Development' sudo yum install
mercurial autoconf213 glibc-static libstdc++-static yasm wireless-tools-devel mesa-libGL-devel alsa-lib-devel libXt-devel gstreamer-devel gstreamer-plugins-base-devel pulseaudio-libs-devel # 'Development tools' is defunct in Fedora 19 and above use the following sudo yum groupinstall 'C Development Tools and Libraries' sudo yum group mark install "X Software Development" Mac: Insta...
...opment Tools and Libraries' sudo yum group mark install "X Software Development" Mac: Install Xcode Tools. Insert "Mac OS X Install Disc 2", then open XcodeTools.mpkg. (For some Mac OS X versions, you will find it in a directory called "Optional Installs".) Install MacPorts. Run these commands to install the other build tools: sudo port sync sudo port install
mercurial libidl autoconf213 yasm Problems? See Mac OS X build prerequisites. Windows: Install Visual C++ 2013. Both the professional edition and the express edition will work. You may need to install one or more Windows SDKs. See Windows SDK versions for a quick guide. If you decided on the Windows 8 SDK, you also need the Outlook 2010 MAPI Header Files from M...
Tamarin build documentation - Archive of obsolete content
lease see Tamarin Tracing Build Documentation. Supported platforms Tamarin currently supports the following operating systems and/or architectures. Windows 32 and 64 bit Mac OSX 10.4, 10.5 on PPC Mac OSX 10.5, 10.6 on Intel Linux 32 and 64 bit Solaris 10 on SPARC Android 2.2 on ARM Windows Mobile 6.5 MIPS (Linux) SH4 (Linux) Getting the Tamarin source The Tamarin source resides in
Mercurial at Tamarin Central. Active development source resides at Tamarin Redux. In this document replace instances of tamarin-central with tamarin-redux to operate in the redux repository. Use the following command to create a copy of the Tamarin repository: $ hg clone http://hg.mozilla.org/tamarin-central tamarin-central Tips for working with
Mercurial can be found here. Building Tamarin Buildin...
... pushing the changes. The Sandbox is setup so that it is able to build and test branches that are based on either tamarin-central or tamarin-tracing. Any comments, questions or problems can be directed to ActionScript QE How to Setup a user repository with the source and patches that will be compiled. ...
...NOTE: Only repositories hosted on http://hg.mozilla.org/ are accepted. Revision: Specify the revision number that will be built. Currently this only accepts the change number and not the hash. ...
Tamarin Tracing Build Documentation - Archive of obsolete content
Use the following command to create a copy of the Tamarin repository: $ hg clone http://hg.mozilla.org/tamarin-tracing tamarin-tracing Building Tamarin Building Tamarin will create all the libraries for the AVMPlus and garbage collector (MMgc), and create a standalone executable, avmshell, for executing files in the ABC file format. Running avmshell without any arguments ...
...actually pushing the changes. The Sandbox is setup so that it is able to build and test branches that are based on either tamarin-central or tamarin-tracing. Any comments, questions or problems can be directed to Brent Baker How To Setup a user repository with the source and patches that will be compiled. ...
...NOTE: Only repositories hosted on http://hg.mozilla.org/ are accepted. Revision: Specify the revision number that will be built. Currently this only accepts the change number and not the hash. ...
Simple Instantbird build
ng System you will need to carry out a different process to prepare your machine. So firstly complete the instructions for your OS and then continue following these build instructions. Windows Build Prerequisites GNU/Linux Build Prerequisites Mac OS X Build Prerequisites TIP: After completing Setup for your OS, and before you Get the source, you can opt to add the progressExtension to your
mercurial.ini (for Windows) or .hgrc (for *Nix / Mac) file. This will provide status feedback during the lengthy clone / download process. see: Configure
Mercurial .hgrc file for Progress Extension. Get the source Note: On Windows, you won't be able to build the Instantbird source code if it's under a directory with spaces in the path (e.g., don't use "Documents and Settings"). You can pick any other loc...
...ems, but because the paths being accessed have been truncated, and so do not exist). Having the source deep in a filesystem hierarchy can also cause problems with pymake builds on Windows. If you run into seemingly arbitrary problems in building and the source is deeply nested, try moving it close to the root of your machine and re-building. Get the latest source code from Mozilla's comm-central
Mercurial code repository: hg clone http://hg.mozilla.org/comm-central Then, get all the repositories it depends on. The comm-central repository includes a script to do just that. This may take a while, it's a lot of code! First, cd into the comm-central subdirectory (created automatically by the previous command): cd comm-central then run: python client.py checkout Note: Unless you have a very goo...
...he comm-central repository includes a script to do just that. This may take a while, it's a lot of code! First, cd into the comm-central subdirectory (created automatically by the previous command): cd comm-central then run: python client.py checkout Note: Unless you have a very good network connection, "hg clone" might fail because it gets interrupted. It is faster and more efficient to use
Mercurial bundles instead the first time you fetch the complete repo. In this case, you need a bundle for comm-central, and a bundle for mozilla-central. Unbundle mozilla-central into a "mozilla" subdirectory of your comm-central repo after unbundling comm-central. Then run python client.py checkout to ensure you are up-to-date. The source code requires 1.5GB of free space or more. Build configuration B...
Obsolete Build Caveats and Tips
is note below seems redundant as this is true by default https://msdn.microsoft.com/en-us/library/dh8che7s%28v=vs.110%29.aspx Note: Starting with Gecko 7.0, you should no longer include "-Zc:wchar_t-" in the command line when building on Windows. If you're using Visual Studio, go to Project Properties > C/C++ > Language > Treat wchar_t as Built-in Type and set it to "yes". From Source_Code/
Mercurial mozilla-2.0 (Firefox 4.0) Code for the Firefox 4.0 (Gecko 2.0) release lives in releases/mozilla-2.0. To get this code, do the following: # Pull the Mozilla source to the folder 20src/ - may take a while # as hundreds of megabytes of history is downloaded to .hg hg clone https://hg.mozilla.org/releases/mozilla-2.0/ 20src cd 20src mozilla-1.9.2 (Firefox 3.6) Code for the Firefox 3.6 (Gecko 1...
...e compiler is included with the Vista SDK, but you are then expected to use the included WinDbg debugger. From Configuring Build Options [en-US] Note: Starting with Gecko 5.0, building Firefox has become extremely simple. The default application is now Firefox, so you can build Firefox by simply doing configure && make (for standalone source tarballs) or make -f client.mk (for code from the
Mercurial repository); this will build something roughly the same as the shipped version of Firefox corresponding to the code you have. You only need to follow the steps below if you want to customize the build (e.g., to create a debug build or a release build with debug symbols), you want to build something other than Firefox, or you want to build pre-gecko 5.0 source. If you are building Mozilla source...
...r to build a debug build or not) to get the type of build that you need. If you are building from an older project branch that still uses CVS, you will need to set MOZ_CO_PROJECT to the appropriate value or values, using a comma-separated list, such as "mk_add_options MOZ_CO_PROJECT=browser,mail,calendar,suite,xulrunner". This setting is ignored by most Mozilla project branches, which now use
mercurial instead of CVS for source control. Note: Starting in Gecko 2.0, objdir builds are enabled by default. If you do not specify a MOZ_OBJDIR it will be automatically set to @TOPSRCDIR@/obj-@CONFIG_GUESS@ Alternatively, you can run client.mk directly from your objdir, using make -f <path_to_srcdir>/client.mk. Note: Starting in Gecko 5.0, if you don't specify an application, --enable-applicati...
Bootstrapping a new locale
(see also https://developer.mozilla.org/en/Create_a_new_localization) The documentation here is no longer being maintained and is inaccurate. L10n documentation has moved to https://mozilla-l10n.github.io/localizer-documentation/ . To learn how to bootstrap a new locale for Mozilla projects, please see those documents. In Mozilla, we use the the
Mercurial version control system (Hg) to help manage our localizations. When a localization team is registered and your Hg repository is set up for a locale, you can then clone the existing Mozilla release branch (i.e. where active development of the upcoming release of Firefox occurs) and then begin the necessary work for translation. Hg allows localizers to work locally on their machines and then "push" changes to their official Mozilla repos...
...ns. When a localization team is registered and your Hg repository is set up for a locale, you can then clone the existing Mozilla release branch (i.e. where active development of the upcoming release of Firefox occurs) and then begin the necessary work for translation. Hg allows localizers to work locally on their machines and then "push" changes to their official Mozilla repository. Installing
Mercurial Depending on your operating system, you will need to install the correct version of Hg on your machine. This document will give you the basic information on how to do that. Install the compare-locales utility The next step is to install compare-locales. $ sudo easy_install compare-locales This will download and install the utility. Clone the source code The next step is to download a cop...
...ed to install the correct version of Hg on your machine. This document will give you the basic information on how to do that. Install the compare-locales utility The next step is to install compare-locales. $ sudo easy_install compare-locales This will download and install the utility. Clone the source code The next step is to download a copy of the source code to your local system, using
Mercurial. You will need to "hg clone" the existing release branch for Mozilla so you have all the files locally for you to begin localization. Make sure to have the directory where you intend to work as the current path on your terminal. (You should "cd" to the directory before beginning.) In the terminal, type the following command: $ hg clone http://hg.mozilla.org/releases/mozilla-x.x.x/ Where "...
Localizing without a specialized tool
tion. Repeating the process allows a localizer to create a testable package to see his or her work as they progress to a final version. If you choose to localize Mozilla with nothing more than a text editing application and not a specialized tool, this document (along with Create a New Localization) will enable you to learn just what needs to be done. Before we start, did you make sure to install
Mercurial and confirm that you have set up the proper build environment on your local machine? You cannot begin localizing Mozilla file by file without a specialized tool without going through the Create a New Localization page. What we will translate We will translate a small piece of the UI found in the search bar. The search bar is next to the right of the location bar, and by default points to the Goo...
... files) Please either follow this structure closely or adjust all commands in the documentation as needed by your custom set-up. Get the source Change your current directory to your working directory with the following command: $ cd /path/to/your/working/directory First, you will need to check out the sources of mozilla-1.9.2 together with the en-US strings. Assuming that you have installed
Mercurial, issue the following command: $ hg clone http://hg.mozilla.org/releases/mozilla-1.9.2 This will pull the Mozilla 1.9.2 sources from the remote repository and create a
Mercurial clone in mozilla-1.9.2 inside your working directory. Next, again in your working dir, create a directory that will serve as localization base: $ mkdir l10n-mozilla-1.9.2 $ cd l10n-mozilla-1.9.2 Inside this directory you ...
...ectory. Next, again in your working dir, create a directory that will serve as localization base: $ mkdir l10n-mozilla-1.9.2 $ cd l10n-mozilla-1.9.2 Inside this directory you will put all the localization files in a folder named after your locale, e.g. x-testing. Depending on your case, you can do it in one of the following ways: If no localization exists yet, create an empty folder and create a
Mercurial repository in it: $ mkdir x-testing $ cd x-testing $ hg init If there is a BitBucket repository with localization files, you can pull from it. This will automatically create an "x-testing" directory in your current directory (you should be in l10n-mozilla-1.9.2). $ hg clone http://bitbucket.org/mozillal10n/x-testing If there is an hg.mozilla.org repository with localization files, you can p...
Python binding for NSS
urrently being tracked in the Red Hat bugzilla system for Fedora. You can enter a bug report here. Source Download Area Source downloads are maintained here. Links to download URL for a specific release can be found in the Release Information section. ...
...Download Area Source downloads are maintained here. Links to download URL for a specific release can be found in the Release Information section. Mozilla Source Code Management (SCM) Information On March 21, 2013 the NSS project switched from using CVS as it's source code manager (SCM) to
Mercurial, also known as hg. All prior CVS information (including release tags) were imported into the new
Mercurial repositories, as such there is no need to utilize the deprecated CVS repositories, use
Mercurial instead. ...
...urce Code Management (SCM) Information On March 21, 2013 the NSS project switched from using CVS as it's source code manager (SCM) to
Mercurial, also known as hg. All prior CVS information (including release tags) were imported into the new
Mercurial repositories, as such there is no need to utilize the deprecated CVS repositories, use
Mercurial instead. To check out python-nss source code from
Mercurial do this: hg clone https://hg.mozilla.org/projects/python-nss The SCM tags for various python-nss releases can be found in the Release Information. You may want to review the Getting Mozilla Source Code Using
Mercurial documentation for more information with working with
Mercurial. The old deprecated CVS documentation can be found here: Getting Mozilla Source Code Using CVS. The old depreca...
Getting SpiderMonkey source code
You can get the SpiderMonkey source code in gzipped form or directly from the
Mercurial repository. Downloading gzipped SpiderMonkey source code You can download gzipped SpiderMonkey source code from the following URLs: http://ftp.mozilla.org/pub/spidermonkey/releases/ http://ftp.mozilla.org/pub/spidermonkey/prereleases/ Here is a command-line example of downloading and unzipping SpiderMonkey source code version 59.0: mkdir mozilla cd mozilla wget http://ftp.mozilla.org/pub/spidermonkey/prereleases/59/pre1/mozjs-59.0a1.0.tar.bz2 tar xvf mozjs-59.0a1.0.tar.bz2 These commands should work on most platforms including Windows, as long as on Windows you are using the MozillaBuild bash shell. ...
...xample of downloading and unzipping SpiderMonkey source code version 59.0: mkdir mozilla cd mozilla wget http://ftp.mozilla.org/pub/spidermonkey/prereleases/59/pre1/mozjs-59.0a1.0.tar.bz2 tar xvf mozjs-59.0a1.0.tar.bz2 These commands should work on most platforms including Windows, as long as on Windows you are using the MozillaBuild bash shell. Getting the latest SpiderMonkey source code from
Mercurial The
Mercurial repository at https://hg.mozilla.org/mozilla-central/ hosts the latest SpiderMonkey sources.
Mercurial is also known as hg. The following command line downloads the entire Mozilla repository, including the full change history and a lot of Gecko and Firefox source code that isn't part of SpiderMonkey. It also changes to the SpiderMonkey directory (js/src). hg clone https://hg.mozi...
...rMonkey. It also changes to the SpiderMonkey directory (js/src). hg clone https://hg.mozilla.org/mozilla-central/ cd js/src To avoid getting the full change history, click the zip or gz links at https://hg.mozilla.org/index.cgi/mozilla-central/file/tip. This fetches a snapshot of the current Mozilla tree. If you have problems with the instructions above, you can read the full details of using
Mercurial to get Mozilla code here. That page also contains links to several bundles, which can be useful if you have a poor network connection. Getting the latest SpiderMonkey source code from Git The following command line downloads the entire Mozilla repository, including the full change history and a lot of Gecko and Firefox source code that isn't part of SpiderMonkey. It also changes to the SpiderMo...
Installing Dehydra - Archive of obsolete content
Make sure that the mq extension is enabled. SpiderMonkey provides scripting capabilities for Dehydra. GCC 4.5, with the package gcc-4.5-plugin-dev installed. (Alternately, build from source) A modern Linux distribution. Dehydra is not supported on Mac OS X. Building SpiderMonkey It is recommended that you use SpiderMonkey revision AURORA_BASE_20110705 when building Dehydra. ...
... GCC cd .. mkdir gcc-objdir mkdir gcc-dist cd gcc-objdir ../gcc-4.5.3/configure --disable-bootstrap --enable-languages=c,c++ --prefix=$PWD/../gcc-dist make make install Building Dehydra and Treehydra Building Dehydra requires SpiderMonkey development headers from the previous step. CXX should point to your copy of GCC 4.5. It is recommended to get the latest Dehydra sources by checking out from
Mercurial. (Obsolete Dehydra releases can be found on the Mozilla ftp site.) hg clone http://hg.mozilla.org/rewriting-and-analysis/dehydra/ cd dehydra export CXX=/usr/bin/g++ ./configure \ --js-headers=$HOME/obj-js/dist/include \ --js-libs=$HOME/obj-js make # run dehydra and treehydra tests make check Usage Dehydra checking can be performed directly within the Mozilla build. To enable static checki...
How to Write and Land Nanojit Patches - Archive of obsolete content
/TR update This step is only done by certain people. nnethercote usually does it for Mozilla, edwsmith and stejohns usually do it for Adobe. Note that you'd only do this for your company's TM/TR repo, ie. Mozilla people for TM, and Adobe people for TR. Propagate all recent nanojit-central changes to your local TM/TR repo. For tracemonkey, use the "make update-nanojit" target (it requires that
Mercurial's "convert" extension be enabled; add "hgext.convert =" to your .hgrc file under "[extensions]"). For tamarin, use the update-nanojit.sh script. Note that updating will clobber the contents of the nanojit/ directory in your private TM/TR repo. It will also generate a commit that updates the nanojit-import-rev file in your target repository; this file records which commits have been copied ov...
...hem work properly. Test this entire group and land them with a single hg push. Then update the whiteboard for the each such bug P and add a comment URL. And likewise for all revisions involved in the update. You're done, but watch the TM/TR testing results (tbpl or buildbot). If you ever want to "undo" revisions you copied from nanojit-central, you can backout copied revisions using the existing
mercurial "backout" command in your target repository. If you do so, the next time you copy revisions from nanojit-central to your target repository, the script will re-copy the backed-out revisions, as well as those that occurred after. You can explicitly manipulate the revision from which the copying process begins by writing a nanojit-central revision ID to the file nanojit-import-rev, held in your targ...
Tamarin Build System Documentation - Archive of obsolete content
Where can I see the build system status? The waterfall page is located at http://tamarin-builds.mozilla.org/tamarin-redux/waterfall What builds are displayed on the build system status page? tamarin-redux
mercurial builds are displayed in the top 3 sections: Compile, Smoke, Test sandbox builds are displayed in next 3 sections: Sandbox Compile, Sandbox Smoke, Sandbox Test tamarin-central is considered a "sandbox" and will appear under Sandbox phase What are the build phases? Compile, Smoke, Test. When all of the slave machines are free they all start the first build phase simultaneously. If an error or failure occurs on any slave in a phase the build stops. The next phase is started when all slaves have completed the previous phase successfully. The Compile phase compiles all...
...e build system prioritizes tamarin-redux checkins over sandbox builds When several tamarin-redux checkins occur the newest change is built including all checkins since the last build Each sandbox build occurs in the order they were submitted, The submitter may cancel a build. How do I build a sandbox build? Create a user repository, instructions are https://developer.mozilla.org/En/Publishing_
Mercurial_Clones Go to the request a sandbox build page http://tamarin-builds.mozilla.org/build_trigger/requestbuild.cfm Enter the repository url, revision number, email address, and description. the description appears in the buildbot status page, please describe what you are trying to build and test After submitting a sandbox build view the build status page or the queue (if buildbot is busy) How d...
XML in Mozilla - Archive of obsolete content
ion to recognize ID type attributes, default attribute values, and general entities. Other Notes A lot of the Document Object Model (DOM, W3C Recommendations and drafts) applies to XML. Likewise, the Cascading Style Sheets (CSS, W3C Recommendations and drafts) style language can be used to style XML documents. The code for most the core XML can be found in the following directories on the Mozilla
mercurial repository: content/xml/, parser/expat/ and parser/htmlparser/. The newsgroup to discuss XML in Mozilla depends a bit on the nature of the question. For example, DOM related questions should probably be discussed in the mozilla.dev.tech.dom newsgroup, while style issues should be discussed on mozilla.dev.tech.css and so on. The catch-all newsgroup for XML discussion is mozilla.dev.tech.xml. ...
...01754), XML Catalogs (bug 98413), XForms (bug 97806; work being done on implementing this as an extension), validating parser (bug 196355) and XML Schemas. To fully implement XLink, we need something called a link manager. See some initial design documents. Testing and QA We have a lot of testcases linked to from the browser standards compliance QA page. Most of the core XML test documents on the
mercurial repository are located in content/xml/tests. We also have a couple online: the books demo and the IRS table of contents demo. Both of them demonstrate XML, Associating stylesheets with XML, displaying XML with CSS, Namespaces in XML, XHTML, simple XLinks, and manipulation of XML with scripts via DOM. There is an XML component in Bugzilla. We also have the "xhtml" keyword for XHTML bugs (these ten...
Old Thunderbird build
ems, but because the paths being accessed have been truncated, and so do not exist). Having the source deep in a filesystem hierarchy can also cause problems with pymake builds on Windows. If you run into seemingly arbitrary problems in building and the source is deeply nested, try moving it close to the root of your machine and re-building. Get the latest source code from Mozilla's comm-central
Mercurial code repository: hg clone https://hg.mozilla.org/comm-central Then, get all the repositories it depends on. The comm-central repository includes a script to do just that. This may take a while, it's a lot of code! First, cd into the comm-central subdirectory (created automatically by the previous command): cd comm-central then run: python client.py checkout On some types of network connec...
...it depends on. The comm-central repository includes a script to do just that. This may take a while, it's a lot of code! First, cd into the comm-central subdirectory (created automatically by the previous command): cd comm-central then run: python client.py checkout On some types of network connections, "hg clone" might fail because it gets interrupted. It is faster and more efficient to use
Mercurial bundles instead the first time you fetch the complete repo. In this case, you need a bundle for comm-central, and a bundle for mozilla-central. Unbundle mozilla-central into a "mozilla" subdirectory of your comm-central repo after unbundling comm-central. (Make sure the unbundled folder's name is now "mozilla" and not "mozilla-central"). Then run "python client.py checkout" to ensure you are up-...
Simple Sunbird build
to build Thunderbird with Lightning. Please refer to the Simple Thunderbird build guide. You can build a bleeding-edge, development version of Sunbird using the commands below. For complete information, see the build documentation. Installing build tools If your system is not listed below, see the build prerequisites page. Ubuntu Linux: sudo apt-get build-dep sunbird sudo apt-get install
mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libiw-dev autoconf2.13 cvs Fedora Linux: sudo yum groupinstall 'Development Tools' 'Development Libraries' 'GNOME Software Development' sudo yum install
mercurial autoconf213 glibc-static libstdc++-static yasm wireless-tools-devel mesa-libGL-devel Mac: Install Xcode Tools. Insert "Mac OS X Install Disc 2", then open XcodeTools.mpkg. (Fo...
... Windows: If you're using Windows XP, you must have Windows XP Service Pack 2 and .NET Framework 2.0. Install Visual C++ 2005 or 2008. Both the professional edition and the express edition will work. You may need to install one or more Windows SDKs. See Windows SDK versions for a quick guide. ...
L10n Checks
to be installed. To do that, you must have Python 2.5, 2.6, or 2.7 installed on your machine. ...
...You pass both the path to the ini file and the parent directory of the localizations as first arguments, followed by the locale codes of the locales you want to compare. ...
Localization prerequisites
requisites. On Mac and Linux, you should be just fine, and on Windows, MozillaBuild should get you everything you need. Tools A recent POSIX Shell Python 2.5 or newer. Perl 5.6 or higher Older perl versions may work if you upgrade File::Spec to version 0.8 GNU make 3.79.1 or higher. Other varieties of "make" will not work. autoconf-2.13 - Autoconf 2.5x will not work. zip 2.3 (or higher)
Mercurial 1.2 or higher recommended. Needed for development of Firefox 3.5/SeaMonkey 2.0/Thunderbird 3.0 and later. A text editor. You can try one of these: Notepad++ or Notepad2 on Windows, vim, gedit or Kate on GNU/Linux, BBEdit on Mac OS X. To verify that they work, open a shell. Linux users should know, on the Mac, you find Terminal in Applications/Utilities. On Windows, MozillaBuil...
...d later. A text editor. You can try one of these: Notepad++ or Notepad2 on Windows, vim, gedit or Kate on GNU/Linux, BBEdit on Mac OS X. To verify that they work, open a shell. Linux users should know, on the Mac, you find Terminal in Applications/Utilities. On Windows, MozillaBuild offers a start-shell-l10n.bat in c:\mozilla-build. Let's try our entry points: $ hg --version
Mercurial Distributed SCM (version 1.3.1) Copyright (C) 2005-2009 Matt Mackall <mpm@selenic.com> and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE Great, hg works. $ make -version GNU Make 3.81.90 ... make works, too. Don't bother the version string here, as long as you're 3.79.1 or better. No...
Initial setup
ounts There are a handful of accounts that you need to be aware of as you begin. They're not required for you to begin contributing, but will be required when you are preparing to produce an official release. For now, simply be aware that these will become important as your efforts progress. These accounts will store your code, contributions, and help you produce an official localization. hg (
Mercurial)
Mercurial is the revision control environment that houses the main Mozilla source code as well as localized code for each official Mozilla localization. You will need this for localizing Mozilla applications. Hg commit access is not necessary to begin localizing. After you have some experience with hg, you may want to get commit access. At that point, you must visit the Mozilla Committer page a...
...unique to your localization team's work. Add a request about creating your locale's Bugzilla component to the new locales newsgroup. Local environment tools Similar to accounts, there is a number of environment tools that you should install on your personal computer. These tools will help you to store your contributions, build Mozilla applications and language packs, and test your work. Hg (
Mercurial) As noted above, we use
Mercurial for maintaining Mozilla source code and localized code. Not only will you need a localization repository to store your localizations, but you need to have it installed and configured on your personal computer as well. You can find everything you need to know about installing and configuring
Mercurial for your localization work here. compare-locales compare-...
QA phase
ress. We're going to go through the process below. The official localization teams use repositories at hg.mozilla.org. Before a team becomes official, we like to get the localizers comfortable with the Hg commands that allow for cloning, pulling, committing, and pushing work to an experimental repository. We use a web service called Bit Bucket to start the learning process. Note: You must have
Mercurial configured before you begin. That step is back on the initial setup page. If you haven't done that yet, don't worry, we'll wait for you! Pushing to your repository There are a couple of things you should take note of before you push to your repository: Make sure that your files have been encoded in Unicode without BOM (byte order mark). Remember that here you are pushing an entire directory...
...ct to see output like this: comparing with http://hg.mozilla.org/l10n-central/x-testing searching for changes changeset: 0:7c543e8f3a6a tag: tip user: Your Name <email@example.com> date: Mon Nov 23 18:08:25 2009 +0100 summary: Added search bar strings Let's now push this changeset. Enter the following command: hg push http://hg.mozilla.org/l10n-central/x-testing
Mercurial will connect to your repo and ask you to provide your account information (i.e., the username and the password). real URL is http://hg.mozilla.org/l10n-central/x-testing pushing to http://hg.mozilla.org/l10n-central/x-testing searching for changes http authorization required realm: hg.mozilla.org HTTP user: your_id password: After you enter your account information, the changeset will be push...
Localization technical reviews
ct release channel to the next (e.g., aurora to beta, or beta to release) is rapidly approaching. You need to make sure that your work can effectively be compiled into a build for the next release channel. Here is a detailed overview of what a technical review is and who it's meant for: A technical review: is performed as a QA measure on a revision pushed to a new locale's L10n aurora repo in
Mercurial. is very comprehensive and covers the entire product. focusses on technical accuracy and completion of L10n work, not translation quality. is only performed on the first revision a new locale wants to have released to the public. must be approved prior to migrating your revision from Aurora to Beta. Technical review evaluation criteria In principal, a technical review's criteria looks for ...
...k your reviews progress two ways: within the bug and through your team's dashboard. If your work is approved, you'll see a + review flag next to your attached revision in your request bug. If bugs are discovered, your technical review is rejected (- review flag) and the bugs are filed in Bugzilla. Once they are fixed, push your fix to your repo, attach it to the corresponding bug using the same
Mercurial revision number as before, and then request another review. The process is then repeated until the bug is fixed to satisfaction. These bugs are also pulled into the dashboards, which track your revision's progress. In order to ultimately have your revision included as an official build, your dashboards must be at 100% green. To the right, you'll see the current dashboard page for a German locali...
Uplifting a localization from Central to Aurora
r the migration. The Releases page on wikimo has the upcoming dates. You should be good doing it the day after. You don't need to work on making the synchronization happen in either of your copies of the aurora or central repositories, but you can create a third one for this work. We even suggest that you do. That makes it easier to throw away attempts that didn't work. So, here are the
mercurial steps to reproduce. Prerequisites: merge tool. You really want a merge tool for this. I use kdiff3; you may choose your own based on what you read at http://
mercurial.selenic.com/wiki/MergeProgram a clone of your central repo. Let's pretend it's at l10n-central/ab-CD. a clone of your aurora repo. Let's pretend it's at releases/l10n-mozilla-aurora/ab-CD Here's how we do it: # set...
...ification that the status of aurora has been lifted up to beta. If hg merge starts asking you questions, you have a merge conflict. That indicates that the same string has different translations on l10n-central and aurora, and you really want to make sure that your aurora clone doesn't have quality issues. In particular, did you land all the fixes for your work on both central and aurora? Because
mercurial suggests that you didn't. Look at the merge conflicts, and figure out if there's stuff that you still want to land on aurora. If so, you want to fix those issues on aurora alone, verify them there, and then go back to this page. One of the reasons why we suggested that you do the merging in a separate tree is just this. You can just throw your merge candidate away as long as you find fixes that y...
What every Mozilla translator should know
We have the main repository called mozilla-central (or trunk) where the day to day developing work is done. When a development is started for an specific version, a new repository is created under hg.mozilla.org/releases/. All the content of the trunk is copied to this new branch so that the developing work is done in two ...
...efwindow, a=l10n As soon as you have committed, put the bug in FIXED state and write fixed1.8.xxx in the keyword field You have to verify in the next build that the changes have been successful. If so, change the state of the bug to VERIFIED and write verified1.8.xxx in the keyword field Tinderbox In Tinderbox you can see the result of the build process. Once you have made some changes in
Mercurial, as soon as the next build is done you can check the Tinderbox and see if something was wrong. l10n Tinderbox When the color is green, it means that the build process has finished with no errors. In this case the resultant installable file will be available in the Mozilla FTP servers: Firefox Nightly Builds Thunderbird Nightly Builds QA (Quality Assurance) In order to assure the quali...
Mozilla Development Tools
Earlier releases and other products use the CVS version control system. ...
...Earlier releases and other products use the CVS version control system. ...
Build instructions
embler as root as follows: yum install binutils220 You can then use the new assembler by adding /usr/libexec/binutils220 to the beginning of your build path. This can be done in sh or bash as follows: export PATH=/usr/libexec/binutils220:$PATH The following build instructions should work for all platforms (with some platform-specific changes as noted). Build Instructions for Recent Versions (
Mercurial) Clone the NSPR and NSS repositories. hg clone https://hg.mozilla.org/projects/nspr hg clone https://hg.mozilla.org/projects/nss If you want to build a releases other than the tips of these repositories, then switch to the release tags: cd nspr hg update NSPR_4_9_5_RTM cd ../nss hg update NSS_3_14_2_RTM cd .. Set environment variables: If you want a non-debug optimized build,...
...tion on troubleshooting the build system, see Troubleshooting NSS and JSS Build Systems. Build Instructions for Older Versions (CVS) Set the environment variable CVSROOT to :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot cvs login (if you haven't before). Check out NSPR and NSS: cvs co -r NSPR_4_9_5_RTM NSPR cvs co -r NSS_3_14_2_RTM NSS Set environment variables as described in the
Mercurial-based instructions. cd mozilla/security/nss gmake nss_build_all The output of the build will be in mozilla/dist subdirectory. For information on troubleshooting the build system, see Troubleshooting NSS and JSS Build Systems. ...
jpm - Archive of obsolete content
unsigned.]: jpm run -b nightly You can set the JPM_FIREFOX_BINARY environment variable with the path to the version of Firefox you want to run. When you invoke jpm run or jpm test without the -b option, jpm first checks JPM_FIREFOX_BINARY, and use this as the path if it is set. Using .jpmignore to ignore files Using .jpmignore is similar to using .gitignore with git, .hgignore with
Mercurial, or .npmignore with npm. By using this file, you can let jpm know which files you would like it to ignore when building a .xpi file with jpm xpi. Here is an example: # Ignore .DS_Store files created by mac .DS_Store # Ignore any zip or xpi files *.zip *.xpi A .jpmignore file with the above contents would ignore all zip files and .DS_Store files from the xpi generated by jpm xpi. Using profi...
jpmignore - Archive of obsolete content
By using this file you can let jpm know which files and directories you would like it to ignore when building a .xpi file with jpm xpi. Here is an example: # Ignore .DS_Store files created by mac .DS_Store # Ignore any zip or xpi files *.zip *.xpi # Ignore specific directory # You can start patterns with a forward slash (/) to avoid recursivity. ...
Index - Archive of obsolete content
ct to change. Comments or questions are welcome and encouraged via the tamarin-devel mailing list. 664 Tamarin build documentation Build documentation, Developing Mozilla, Tamarin The following instructions are for obtaining and building the Tamarin Central source code. For instructions on Tamarin Tracing, please see Tamarin Tracing Build Documentation. 665 Tamarin
mercurial commit hook It is highly recommended that all developers enable the
mercurial commit hook for tamarin. The hook is located in the tamarin-redux repository in the file utils/hooks/tamarin-commit-hook.py 666 The Download Manager schema Firefox 3 The Download Manager uses an SQLite table to keep track of downloads in progress as well as queued and past downloads. ...
Index of archived content - Archive of obsolete content
e tests Running Tamarin acceptance tests Running Tamarin performance tests Tamarin Build System Documentation Tamarin Releases Tamarin-central rev 703:2cee46be9ce0 Tamarin Roadmap Tamarin build documentation Tamarin
mercurial commit hook The Download Manager schema The life of an HTML HTTP request The new nsString class implementation (1999) TraceVis Transforming XML with XSLT:Mozilla XSLT Transforming XML with XSLT:The Netscape XSLT Treehydra Treehydra Build Instructions Treehyd...
Creating a Release Tag - Archive of obsolete content
Here are directions for creating a release from a linux system. Note that there are a couple of extra files for Win32 and Macintosh that aren't pulled by the normal script and need to be pulled by hand. The mini-branch is created so you can check in the build scripts with the necessary changes without touching the original branch. Check out Mozilla from the branch you want to tag. Remember to also check out extra Mac and Win32 files that aren't normally checked out on linux or the tag won't build on those platforms. ...
Nanojit - Archive of obsolete content
It's in the nanojit directory. The input for Nanojit is a stream of Nanojit LIR instructions. The term LIR is compiler jargon for a language used internally in a compiler that is usually cross-platform but very close to machine language. ...
Merging TraceMonkey Repo - Archive of obsolete content
he conflict markers that look like <<<<<<. If it's obvious how to fix the conflict, just do it. Otherwise, you can run hg parents filename to find the changesets which may have contributed to the conflict. Inspecting the files at those two changesets can be helpful: hg cat -c changeset filename Once all the conflict markers are removed, you've performed the manual resolution, which you tell to
mercurial by running hg resolve -m filename. Again, exercuse caution. Once you've resolved all the files, all the entries in hg resolve -l will have Rs next to them. Perform a build. If the tree does not build successfully you've likely merged something incorrectly. Historically, auto-merge doesn't mess up much. Land. If the sheriff gives you permission to land, hg push -r default ssh://hg.mozilla.or...
Tamarin - Archive of obsolete content
w (PDF, 400K) The instructions, architecture, and file format supported by the AVM2. See also the possible errata. Tamarin Build Documentation How to get, build, and use Tamarin. Tamarin Build System Documentation Documentation on how the Tamarin build system works and how to modify. Tamarin commit hook Instructions for installing and using the
mercurial hook for Tamarin. Tamarin Acceptance Testing Instructions on how to validate changes to the Tamarin source code. Tamarin pages at wiki.mozilla.org More documentation. MMgc overview An overview of the Tamarin garbage collector. Nanojit LIR In Nanojit, LIR is the source language for compilation to machine code. ...
Venkman - Archive of obsolete content
an install option; choose Advanced install. Also available from Firefox Add-ons as an extension. Nvu and KompoZer JavaScript Debugger extension version 0.9.84 is available from Nvu's downloads page. We encourage you to use the latest available version 0.9.87.1 (or higher) with Firefox instead. Source Code The source code for Venkman may be found in
Mercurial at the following URL: http://hg.mozilla.org/venkman/summary Community View Mozilla forums... Mailing list Newsgroup RSS feed IRC: #venkman on irc.mozilla.org Report a bug in Venkman If you find a problem with Venkman, please follow directives mentioned at Venkman FAQ section 5.4 and then you may report a bug on JavaScript Debugger compo...
Building XULRunner - Archive of obsolete content
You can also check the User Agent string in Firefox Help/About menu to get the mapping from a certain binary Firefox version to the corresponding XULRunner version. For instance, in Firefox 2.0.0.9 you will get : Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 Therefore the XULRunner version for this Firefox version is : 1.8.1.9 Fetching Sources from
Mercurial As with all other Mozilla products, one would fetch recent sources from
Mercurial. For example, to build XULRunner with the top of the tree: hg clone http://hg.mozilla.org/mozilla-central/ src cd src echo ". \$topsrcdir/xulrunner/config/mozconfig" > .mozconfig make -f client.mk build Interwiki Language Links ...
What to do and what not to do in Bugzilla
ms with specific websites that result from bad coding practices already determined to be "tech evangelism" cases by the module owner or peer, or problems that result from the use of proprietary technology, should be be moved to the Tech Evangelism product rather than being resolved as INVALID. Resolving bugs as FIXED Resolve a bug as FIXED if the bug has been fixed by a checkin into the Mozilla
Mercurial code repository. Bugs which can no longer be reproduced should be marked WORKSFORME instead of FIXED if they can't be linked to a single checkin. Resolving bugs as WONTFIX Bugs should not be marked WONTFIX by the normal bug triager. The decision to mark a bug WONTFIX is reserved for module owners or module peers. Verifying bugs Only RESOLVED bugs can be verified. To verify a bug, you will nee...
Continuous Integration
words, to keep the code in our respositories in a good state, to the extent that the state is reflected in the output shown on Treeherder. When sheriffs see a build or test has been broken, they are empowered to take one of several actions, including backing out a patch which caused the problem and closing the tree (i.e., preventing any additional commits). Results in Treeherder are ordered by
Mercurial pushes. Each TaskCluster job is represented by a colored label; green means a job has succeeded, while other colors represent different kinds of problems. The label text indicates the job type. For a full list of job types, see the Help menu in Treeherder's upper-right corner. Below is a list of the most common. Builds B - Normal build jobs; these jobs perform compilation and some compile...
Configuring Build Options
l be automatically set to @TOPSRCDIR@/obj-@CONFIG_GUESS@. If you need to re-run configure, the easiest way to do it is using ./mach configure; running configure manually is strongly discouraged. Adding the following line to your mozconfig allows you to change the objdir: mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@ It is a good idea to have your objdir name start with obj so that
Mercurial ignores it. Sometimes it can be useful to build multiple versions of the source (such as with and without diagnostic asserts). To avoid the time it takes to do a full rebuild, you can create multiple mozconfig files which specify different objdirs. For example, a mozconfig-dbg: mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-ff-dbg ac_add_options --enable-debug and a mozconfig-rel-opt: mk_add_optio...
Simple Thunderbird build
ause the paths being accessed have been truncated, and so do not exist). Having the source deep in a filesystem hierarchy can also cause problems with pymake builds on Windows. If you run into seemingly arbitrary problems in building and the source is deeply nested, try moving it closer to the root of your machine and re-building. Get the latest Mozilla source code from Mozilla's mozilla-central
Mercurial code repository, and check it out into a local directory source/ (or however you want to call it). Then, get the latest Thunderbird source code from Mozilla's comm-central
Mercurial code repository. It now needs to be placed inside the Mozilla source code, in a directory named comm/ (this is inverse from Thunderbird 59 and earlier): hg clone https://hg.mozilla.org/mozilla-central source/ cd sour...
ESLint
p ESLint ./mach eslint --setup Running ESLint Eslint can be run via: ./mach lint -l eslint You can limit running it to a specific directory with: ./mach lint -l eslint browser/components Or work directory changes: ./mach lint -l eslint -w Or outgoing commits only: ./mach lint -l eslint -o See ./mach eslint --help for more options when running eslint. VCS Hooks Hooks are available for
Mercurial & Git, see using a vcs hook for more details. Editor Integration It is highly recommended that you integrate eslint into your editor. This lets you see errors in real time, and can help you fix issues before you compile or run tests, reducing the time to develop patches. See the ESLint user guide for which plugins to install in your editor. Prior to Firefox 55 the location for the eslint bin...
Eclipse CDT
you/want/to/open") subprocess.Popen([eclipse_app_path, "-data", workspace_path]) # Uncomment the following line to automatically close the Terminal window # that opens if you run this script by double clicking it in Finder. #subprocess.Popen(["osascript", "-e", 'tell application "Terminal"', "-e", "close front window", "-e", "end tell"]) TODO: add instructions for Linux and Windows. Is there a
Mercurial plugin for Eclipse? There is
MercurialEclipse, but probably most Mozilla developers will just prefer to use the command line. If you think we need our own documentation on
MercurialEclipse, please consider adding a separate page for that tool since this page is already pretty long. How can I delete my Eclipse project and start over? If you followed the recommendation above to create one worksp...
Eclipse CDT Manual Setup
ne numbers". If you want a column marker to mark the 80th column to help with formatting code to Mozilla's 80 character line limit, tick "Show print margin" and set the value to 80. Select "General > Workspace" and select "Refresh using native hooks or polling" and "Refresh on access" to prevent Eclipse giving you annoying "Resource is out of sync" messages when files change from under it due to
Mercurial or other external activity. Select "C/C++ > Build > Console" and set "Limit console output (number of lines)" to something large, like "1000000". Eclipse CDT will try to format C/C++ code that you add as you type. However, its default formats are not a good match to Mozilla's style rules. Download this first pass at an Eclipse formatter configuration for Mozilla C/C++ coding style, and install ...
Reviewer Checklist
llow the style guide for the language and module in question. Follow local style for the surrounding code, even if that local style isn't formally documented. New files have license declarations and modelines. New JS files should use strict mode. Trailing whitespace (git diff and splinter view both highlight this, as does hg with the color extension enabled). Whitespace can be fixed easily in
Mercurial using the CheckFiles extension. In git, you can use git rebase --whitespace=fix. Security issues There should be no writing to arbitrary files outside the profile folder. Be careful when reading user input, network input, or files on disk. Assume that inputs will be too big, too short, empty, malformed, or malicious. Tag for sec review if unsure. If you're writing code that uses JSAPI, ch...
Working with Mozilla source code
hipping 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. ...
Translation phase
tning Lightning is a popular calendaring, scheduling and task management extension. If your locale has an hg repository hosted on the Mozilla servers, you can track your localization's current progress by visiting the l10n dashboards. Note: If you are starting a new localization and decide to use an offline tool for localizing Mozilla applications, you will need to become familiar with using
Mercurial (hg). Visit the tutorial on using hg in your localization efforts here. Mozilla websites So you're interested in localizing Mozilla websites. Each l10n tool follows a different workflow for localizing Mozilla web projects. We've linked a brief tutorial to each l10n tool name below. Follow the tutorials to help you decide which l10n tool fits your specific needs. These are the l10n tools we u...
Localization sign-off reviews
f's approval progress with specific Bugzilla bugs. As your work is approved, you'll see a green circle in the farthest column to the right. If bugs are discovered, your technical review/sign-off is rejected and the bugs are filed in Bugzilla. Once filed, they appear on your dashboard for you to fix. Once they are fixed, push your fix to your repo, attach it to the corresponding bug using the same
Mercurial revision number as before, and then request another review. The process is then repeated until the bug is fixed to satisfaction. The diff generated for sign-off reviews The image to the right illustrates the revisions diff between the current release revision and your newly proposed release revision. This is generated from the revision attachment in your Bugzilla bug and evaluated to verify the ...
Mozilla Development Strategies
Work on the most important bugs first Everyone likes to check in. But keep in mind that your checkin rate isn't everything. It's better to fix one data loss bug, crasher, or performance bug that really affects the user than edge case bugs that are rarely seen or minor bugs. ...
Mozilla projects on GitHub
code. emscripten The Emscripten LLVM-to-JavaScript compiler. fxdt-adapters The Firefox Developer Tools Adapter that lets you debug various remote targets from the Firefox Developer Tools. firefox-dev.tools A Web page to help new Mozilla contributors find bugs to work on that relate to the Firefox Developer Tools. gecko-dev A read-only mirror of the
Mercurial repositories used for Mozilla private code. kitsune Kitsune is the platform that drives the Mozilla support web site, SUMO. kuma The Django project that powers this site (MDN). mdn Code samples for the MDN Web site. mozbrick The Mozilla Brick project. mozilla-B2G The Firefox OS project. mozilla-appmaker The Appmaker project -...
Installing JSHydra
Prerequisites for building SpiderMonkey SpiderMonkey is part of the build process, but since JSHydra will get the code if required, you do not need to worry about obtaining the right version of SpiderMonkey. Building JSHydra JSHydra requires, as part of its build process, SpiderMonkey. By default, the configure script will obtain a known working copy of SpiderMonkey; it is possible via the --moz-src and --moz-obj configure arguments to tell JSHydra to use existing copies of the source and build. ...
NSPR build instructions
SPR source tree is the mozilla/nsprpub directory. Although nsprpub is a subdirectory under mozilla, NSPR is independent of the Mozilla client source tree. Building NSPR consists of three steps: run the configure script. You may override the compilers (the CC environment variable) or specify options. build the libraries build the test programs For example, # check out the source tree from
Mercurial hg clone https://hg.mozilla.org/projects/nspr # create a build directory mkdir target.debug cd target.debug # run the configure script ../nspr/configure [optional configure options] # build the libraries gmake # build the test programs cd pr/tests gmake On Mac OS X, use make, which is GNU make. Configure options Although NSPR uses autoconf, its configure script has two default values that are...
Building NSS
ath. This is recommended, as the build is faster and more reliable. Windows NSS compilation on Windows uses the same shared build system as Mozilla Firefox. You must first install the Windows Prerequisites, including MozillaBuild. You can also build NSS on the Windows Subsystem for Linux, but the resulting binaries aren't usable by other Windows applications. Get the source NSS and NSPR use
Mercurial for source control like other Mozilla projects. To check out the latest sources for NSS and NSPR--which may not be part of a stable release--use the following commands: hg clone https://hg.mozilla.org/projects/nspr hg clone https://hg.mozilla.org/projects/nss To get the source of a specific release, see NSS Releases. Build Build NSS using our build script: nss/build.sh This bui...
Index
This chapter describes how to build and install NSS. 225 Build instructions NSS Numerous optional features of NSS builds are controlled through make variables. 226 Installation guide NSS No summary! 227 Migration to HG The NSPR, NSS and related projects have stopped using Mozilla'a CVS server, but have migrated to Mozilla's HG (
Mercurial) server. Each project now lives in its own separate space, they can be found at: https://hg.mozilla.org/projects/nspr/ https://hg.mozilla.org/projects/nss/ https://hg.mozilla.org/projects/jss/ https://hg.mozilla.org/projects/python-nss/ 228 Sample manual installation NSS No summary! 229 FC_CancelFunction NSS No summary! 230 FC_C...
JSS
The JSS project has been relocated! As of April 6, 2018, JSS has been migrated from
Mercurial on Mozilla to Git on Github. JSS source should now be checked out from the Github: git clone git@github.com:dogtagpki/jss.git -- OR -- git clone https://github.com/dogtagpki/jss.git All future upstream enquiries to JSS should now use the Pagure Issue Tracker system: https://pagure.io/jss/issues Documentation regarding the JSS project should now be viewed at: http://www.dogtagpki.org/wiki/JSS NOTE: As much of the JSS documentation is sorely out-of-date, updated information will be a work in progress, and many portions of any legacy documentation will be re-written over the course of time. Stay tuned! Legacy JSS information can still be found at: SOURCE: https://hg.mozilla...
JSS 4.4.0 Release Notes
ia NSS though JSS. Bugs fixed in JSS 4.4.0 This Bugzilla query returns all the bugs fixed in NSS 4.4.0: https://bugzilla.mozilla.org/buglist.cgi?product=JSS&target_milestone=4.4&target_milestone=4.4&bug_status=RESOLVED&resolution=FIXED Documentation Build instructions for JSS at https://hg.mozilla.org/projects/jss/file/tip/README Platform Information You can check out the source from
mercurial via hg clone -r 055aa3ce8a61 https://hg.mozilla.org/projects/jss JSS 4.4.0 works with OpenJDK versions 1.7 or higher we suggest the latest - OpenJDK 1.8. JSS 4.4.0 requires NSS 3.12.5 or higher though NSS 3.28.3 is recommended. JSS 4.3.1 requires NSPR 4.7.1 or higher though NSPR 3.13 is recommended. JSS only supports the native threading model (no green threads). Compatibility JSS 3.
NSS 3.15 release notes
Items. New Macros in ssl.h SSL_ENABLE_OCSP_STAPLING - Used with SSL_OptionSet to configure TLS client sockets to request the certificate_status extension (eg: OCSP stapling) when set to PR_TRUE Notable Changes in NSS 3.15 SECITEM_ReallocItem is now deprecated. Please consider using SECITEM_ReallocItemV2 in all future code. NSS has migrated from CVS to the
Mercurial source control management system. Updated build instructions are available at Migration to HG As part of this migration, the source code directory layout has been re-organized. The list of root CA certificates in the nssckbi module has been updated. The default implementation of SSL_AuthCertificate has been updated to add certificate status responses stapled by the TLS...
NSS sources building testing
e easiest way is to download archives of NSS releases from Mozilla's download server. Find the directory that contains the highest version number. Because NSS depends on the base library NSPR, you should download the archive that combines both NSS and NSPR. If you are a software developer and intend to contribute enhancements to NSS, you should obtain the latest development snapshot of NSS using
mercurial/hg (a distributed source control management tool). In order to get started, anonymous read-only access is sufficient. Create a new directory on your computer that you will use as your local work area, and run the following commands. hg clone https://hg.mozilla.org/projects/nspr hg clone https://hg.mozilla.org/projects/nss After the above commands complete, you should have two local directories,...
Migration to HG
Each project now lives in its own separate space, they can be found at: https://hg.mozilla.org/projects/nspr/ https://hg.mozilla.org/projects/nss/ https://hg.mozilla.org/projects/jss/ https://hg.mozilla.org/projects/python-nss/ This migration has been used as an opportunity to change the layout of the source directories. For NSPR, "mozilla/nsprpub" has been removed from the directory hierarchy, all files now live in the top directory of the NSPR repository. ...
SpiderMonkey Build Documentation
d. (It should say: 5! is 120.) Run the main test suite by running ./tests/jstests.py ${BUILDDIR}/dist/bin/js Run JIT-specific tests by running: ./jit-test/jit_test.py ${BUILDDIR}/dist/bin/js Building SpiderMonkey 1.8 or earlier Use these instructions to build SpiderMonkey from an official source release or from the old CVS repository. To build the latest SpiderMonkey sources from
Mercurial, see Building SpiderMonkey above. SpiderMonkey is easy to build from source if you have the usual Mozilla build prerequisites installed. Before you begin, make sure you have right build tools for your computer: Linux, Windows, Mac, others. First, download a SpiderMonkey source distribution, such as SpiderMonkey 1.8 Release Candidate 1. To build, use these commands: tar xvzf js-1.8.0-rc1.tar.g...
How to embed the JavaScript engine
oworld -lmozjs-31 -lz -lpthread -ldl It should print "helloworld, it is TIME" (here TIME is the current time). Make sure the build computer has the prerequisites for building SpiderMonkey: Linux, Windows, Mac OS X, others. For Windows, the following steps will assume that you have installed the MozillaBuild package. Get the SpiderMonkey source code. You can download a source archive or use
Mercurial (hg) to pull the SpiderMonkey repository. On Windows, do not install the SpiderMonkey source code under the MSYS root directory (which is usually c:\mozilla-build\msys). Instead use something like c:\mozjs-31.2.0 Compile SpiderMonkey using the build instructions at SpiderMonkey Build Documentation. By default this will build a SpiderMonkey shared library that you will link into your application ...
Index
arbage collector (GC) will be changing a lot in the future. This page is intended to explain the changes that are happening, with a focus on how they will affect Gecko code that uses JSAPI. At a high level, there are three issues to be aware of: 8 Getting SpiderMonkey source code Guide, SpiderMonkey You can get the SpiderMonkey source code in gzipped form or directly from the
Mercurial repository. 9 Hacking Tips SpiderMonkey This page list a few tips to help you investigate issues related to SpiderMonkey. All tips listed here are dealing with the JavaScript shell obtained at the end of the build documentation of SpiderMonkey. It is separated in 2 parts, one section related to debugging and another section related to drafting optimizations. Many of these tip...
SpiderMonkey 1.8.5
ainst the same objects are now explicitly not supported. Multithreaded programs are allowed, but each thread must operate on objects in a separate compartment, isolated from the other threads. The old build system (using Makefile.ref) is no longer supported. SpiderMonkey 1.8.5 includes a new configure-based build system, introduced shortly after active development on the engine moved from CVS to
Mercurial. SpiderMonkey 1.8.5 is not binary-compatible with previous releases, nor is it source-code compatible. Many JSAPI types, functions, and callback signatures have changed, though most of them still have the same names and do the same things. Applications will need significant changes, but most of those changes will be detected by the C/C++ compiler, so they are easy to detect and updating the code...
Mozilla technologies
user's friends of the applications which their friends are using. It is not meant as a general application messaging system. Toolkit APIThe Mozilla Toolkit is a set of programming interfaces (APIs) built on top of Gecko which provide advanced services to XUL applications. These services include:Viewing and searching Mozilla source code onlineSource code for all Mozilla projects hosted in the
Mercurial repositories can be searched and viewed online using Searchfox, a fast indexed search engine that runs on AWS.XML ExtrasThe XML Extras module contains several features that allow developers to treat XML as data i.e. not as just another document format. The module is structured as a drop-in component and exposes its XML-as-data features both to JavaScript and C++/XPCOM users. The XML Extras module...
Using the Mozilla source server
Once the symbol path is set you must now enable Source Server. Using the source server in WinDbg In the WinDbg command line, type .srcfix and hit e...
Firefox user agent string reference - HTTP
to infer version information from the Gecko version number present in the UA string. Firefox OS version number Gecko version number 1.0.1 18.0 1.1 18.1 1.2 26.0 1.3 28.0 1.4 30.0 2.0 32.0 2.1 34.0 2.2 37 2.5 44 It's easy to find the correspondences by looking at the
Mercurial repository names: repositories starting by mozilla-b2g are the release repositories for Firefox OS, and have both Firefox OS and Gecko versions in their names. Firefox OS has a four-digit version number: X.X.X.Y. The first two digits are owned by the Mozilla product team and denote versions with new features (eg: v1.1, 1.2, etc). The third digit is incremented with regular version tags (about e...