Home   Notes   Contact Me

Firefox Development

Local

External


Setup the devel environment

  1. Setup mercurial:
    [ui] editor = notepad username = something@somewhere.com merge = p4merge
  2. Check out the source code:
    hg clone http://hg.mozilla.org/mozilla-central/ src
  3. Set the topsrcdir for builds by editting
    C:\mozilla-build\start-msvc9.bat
    And inserting something like this into it:
    rem YOURNAME vvvvv set topsrcdir=/d/work/firefox/src rem YOURNAME ^^^^^
  4. Start shell with the build environment:
    C:\mozilla-build\start-msvc9.bat
  5. Use the shell you just started for the following commands
  6. Set up the filefox build options by editing .mozconfig with vi. Place the following into it:
    # my mozilla config mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@ ac_add_options --enable-application=browser mk_add_options MOZ_CO_PROJECT=browser ac_add_options --enable-debug ac_add_options --disable-accessibility
  7. Start the build like this:
    make -f {????}
  8. Wait a very long time
  9. Run the Firefox you built:
    obj-i686-pc-mingw32/dist/bin/firefox.exe