Build firefox on windows

Take a browse on the wild side.

Be among the first to explore future releases of Firefox for desktop, Android and iOS.

Test about-to-be-released features in the most stable pre-release build.

Firefox Beta — English (US)

Your system may not meet the requirements for Firefox, but you can try one of these versions:

Firefox Beta — English (US)

Beta is an unstable testing and development platform. By default, Beta sends data to Mozilla — and sometimes our partners — to help us handle problems and try ideas. Learn what is shared.

Give us feedback to help us put the final tweaks on performance and functionality in a stable environment.

Developer Edition

Build, test, scale and more with the only browser built just for developers.

Firefox Developer Edition — English (US)

Your system may not meet the requirements for Firefox, but you can try one of these versions:

Firefox Developer Edition — English (US)

Developer Edition is an unstable testing and development platform. By default, Developer Edition sends data to Mozilla — and sometimes our partners — to help us handle problems and try ideas. Learn what is shared.

Nightly

Get a sneak peek at our next generation web browser, and help us make it the best browser it can be: try Firefox Nightly.

Firefox Nightly — English (US)

Your system may not meet the requirements for Firefox, but you can try one of these versions:

Firefox Nightly — English (US)

Nightly is an unstable testing and development platform. By default, Nightly sends data to Mozilla — and sometimes our partners — to help us handle problems and try ideas. Learn what is shared.

See something that isn’t working? Let us know.

Thanks!

If you haven’t previously confirmed a subscription to a Mozilla-related newsletter, you may have to do so. Please check your inbox or your spam filter for an email from us.

Firefox fights for you on Windows.

Download Firefox — English (US)

Your system may not meet the requirements for Firefox, but you can try one of these versions:

Download Firefox — English (US)

  • Advanced install options & other platforms
  • Download in another language
  • Fix a problem
  • Need help?
  • Download in another language
  • Need help?
  • Need help?
Читайте также:  Кликер для raid shadow legends mac os

2x Faster

Firefox moves fast and treats your data with care — no ad tracking and no slowdown.

Common sense privacy

Live your life, Firefox isn’t watching. Choose what to share and when to share it.

Seamless setup

Easy migration of preferences and bookmarks when you download Firefox for Windows.

Advanced install options & other platforms

Download Firefox
for Windows

Download Firefox
for macOS

Download Firefox
for Linux

Download Firefox — English (US)

Your system may not meet the requirements for Firefox, but you can try one of these versions:

Build Instructions

The mechanism used to build Firefox for Android also has its own page.

The mechanism used to build Firefox for iOS also has its own github.

This page is about building Firefox Desktop

The Mozilla build system, like the rest of the Mozilla codebase, is cross-platform. It uses traditional Unix-style autoconf and make tools to build the various applications (even on non-unix operating systems).

Because the Mozilla codebase builds many different applications and has many options, it is complex to use and learn. Please read these instructions carefully before attempting a build.

These build pages are for the projects which use the autoconf-based build system: Firefox, Thunderbird, Mozilla Suite / SeaMonkey, XULRunner, Sunbird, and standalone Composer.

For build information on other Mozilla projects, visit their project or build page: Camino, NSPR, Spidermonkey, NSS, and Directory SDK for C.

If you are having build problems, please post questions to the newsgroup mozilla.dev.builds (access via Google Groups). Make your post as precise as possible, including details about your operating system, your mozconfig/configure flags, and the precise error you are experiencing.

You may also want to check the TreeHerder to make sure the product you are working with is currently compiling in your environment.

For the impatient

The quickest way to build Mozilla is to use the instructions at the simple build pages:

For more detail, see below.

Getting started

Build prerequisites

Before you try to build, make sure you have the correct tools, and have configured these tools correctly.

Get the source

Configuring build options

Running configure and make with the default options will not give you a good working build. You should use a .mozconfig file to obtain a reasonable release build. Please read Configuring Build Options carefully before building.

Build and install

After setting up your environment, downloading the source, and configuring the build, refer to the following per-app instructions on how to build:

A more secure Firefox.

Download Firefox — English (US)

Your system may not meet the requirements for Firefox, but you can try one of these versions:

Download Firefox — English (US)

Users on 64-bit Windows who download Firefox can get our 64-bit version by default. That means you get a more secure version of Firefox, one that also crashes a whole lot less. How much less? In our tests so far, 64-bit Firefox reduced crashes by 39% on machines with 4GB of RAM or more.

What’s the difference between 32-bit and 64-bit?

Here’s the key thing to know: 64-bit applications can access more memory and are less likely to crash than 32-bit applications. Also, with the jump from 32 to 64 bits, a security feature called Address Space Layout Randomization (ASLR) works better to protect you from attackers. Linux and macOS users, fret not, you already enjoy a Firefox that’s optimized for 64-bit.

Читайте также:  Не удаляется office 365 windows 10

How do you get 64-bit Firefox?

If you’re running 64-bit Windows (here’s how to check), your Firefox may already be 64-bit. Check your Firefox version (in the “About Firefox” window) and look for “(32-bit)” or “(64-bit)” after the version number:

  • If you see “(32-bit)” and you are running Firefox 56.0 or older, updating to the latest Firefox version should automatically upgrade you to 64-bit.
  • If you see “(32-bit)” and are running Firefox 56.0.1 or newer, then your computer may not meet the minimum memory requirement for 64-bit (3 GB RAM or more). You can still manually install 64-bit Firefox, if you choose.

If you need to run 32-bit Firefox or manually install 64-bit Firefox, you can simply download and re-run the Windows (32-bit or 64-bit) Firefox installer from the Firefox platforms and languages download page.

Building Firefox On Windows¶

This document will help you get set up to build Firefox on your own computer. Getting set up can take a while — we need to download a lot of bytes! Even on a fast connection, this can take ten to fifteen minutes of work, spread out over an hour or two.

If you’d prefer to build Firefox for Windows in a virtual machine, you may be interested in the Windows images provided by Microsoft.

Requirements¶

Memory: 4GB RAM minimum, 8GB+ recommended.

Disk Space: At least 40GB of free disk space.

Operating System: Windows 7 or later. It is advisable to have Windows Update be fully up-to-date.

1. System preparation¶

1.1 Install Visual Studio¶

Download and install the Community edition of Visual Studio 2019. If you have the Professional or Enterprise edition, that is also supported.

Ensure you’ve checked the following items for installation:

    In the Workloads tab:

    Desktop development with C++.

    Game development with C++.

    Windows 10 SDK (at least 10.0.17134.0).

    C++ ATL for v142 build tools (x86 and x64).

    1.2 Install MozillaBuild¶

    Accept the default installation directory. Windows may prompt you to “reinstall with the correct settings”, which you should click to accept.

    When working with Firefox tooling, you’ll need to do so from within the MozillaBuild shell. You can start it by running C:\mozilla-build\start-shell.bat (you may want to make a shortcut to this file so it’s easier to start).

    The MozillaBuild shell is a lot more like a Linux shell than the Windows cmd . You can learn more about it here.

    2. Bootstrap a copy of the Firefox source code¶

    Now that your system is ready, we can download the source code and have Firefox automatically download the other dependencies it needs. The below command will download a lot of data (years of Firefox history!) then guide you through the interactive setup process.

    In general, the Firefox workflow works best with Mercurial. However, if you’d prefer to use git , you can grab the source code in “git” form by running the bootstrap script with the vcs parameter:

    This uses Git Cinnabar under the hood.

    Choosing a build type¶

    If you aren’t modifying the Firefox backend, then then select one of the Artifact Mode options. If you are building Firefox for Android, you should also see the GeckoView Contributor Guide .

    Set antivirus exclusions¶

    Windows Defender and some scanning antivirus products are known to significantly degrade build times and sometimes even cause failed builds (due to a “missing file”). This is usually because we have tests for well-known security bugs that have code samples that antivirus software identifies as a threat, automatically quarantining/corrupting the files.

    To avoid this, add two folders to your antivirus exclusion list:

    The C:\mozilla-build folder.

    The directory where the Firefox code is (probably C:\mozilla-source ).

    If you haven’t installed an antivirus, then you will need to add the exclusions to Windows Defender.

    If you’re already missing files (you’ll see them listed in hg status , you can have them brought back by reverting your source tree: hg update -C ).

    3. Build¶

    Now that your system is bootstrapped, you should be able to build!

    🎉 Congratulations! You’ve built your own home-grown Firefox!

    Now the fun starts¶

    Time to start hacking! You should join us on Matrix, say hello in the Introduction channel, and find a bug to start working on. See the Firefox Contributors’ Quick Reference to learn how to test your changes, send patches to Mozilla, update your source code locally, and more.

    Troubleshooting¶

    MozillaBuild out-of-date¶

    The build system expects that you’re using the most-recent MozillaBuild release. However, MozillaBuild doesn’t auto-update. If you’re running into local issues, they may be resolved by upgrading your MozillaBuild.

    Spaces in folder names¶

    Firefox will not build if the path to the installation tool folders contains spaces or other breaking characters such as pluses, quotation marks, or metacharacters. The Visual Studio tools and SDKs are an exception — they may be installed in a directory which contains spaces. It is strongly recommended that you accept the default settings for all installation locations.

    Installing Visual Studio in a different language than Windows¶

    If Visual Studio is using a different language than the system, then your build may fail with a link error after reporting a bunch of include errors.

    Quotation marks in PATH ¶

    Quotation marks (“) aren’t translated properly when passed to MozillaBuild sub-shells. Since they’re not usually necessary, you should ensure they’re not in your PATH environment variable.

    PYTHON environment variable¶

    If PYTHON is set, the build may fail with the error: “ The system cannot find the file specified .” Ensure that you aren’t having a PYTHON environment variable set.

    Cygwin interference¶

    If you happen to have Cygwin installed, its tools may erroneously be used when building Firefox. Ensure that MozillaBuild directories (in C:\mozilla-build\ ) are before Cygwin directories in the PATH environment variable.

    Building from within Users¶

    If you encounter a build failure with: LINK: fatal error LNK1181: cannot open input file ..\..\..\..\..\security\nss3.lib and the Firefox code is underneath the C:\Users folder, then you should try moving the code to be underneath C:\\mozilla-source instead.

    Читайте также:  После активации пароль windows
Оцените статью