Skip to content

Case file 3

Firefox Quantum: replacing the engine in flight

Mozilla had already lived through one from-scratch browser rewrite. The second time, it replaced the engine a component at a time, inside a product that never stopped shipping.

Slide: the Firefox engine as five parts, one old Gecko part left and a new part from Servo being lowered in, from 2012 to Firefox Quantum on November 14, 2017.

If the Netscape case is the warning, this is the same organization, a generation later, doing the opposite. The engine at the center of both stories is the same one.

Gen 1

Gecko, the engine inside Firefox, was the product of the Netscape rewrite. By the mid-2010s it was old in its own right. It had been designed for a world of single-core processors, and browsers had become the most demanding software most people ran. Firefox had fallen behind on speed, and Mozilla said so openly.

Mozilla had a real technical answer in progress. Development of Servo, an experimental browser engine, began at Mozilla in 2012. Servo was written in Rust and designed from the start to use every core in the machine safely.

The decision

The obvious move was to finish Servo and ship it as the new Firefox. That is the Netscape move: stop, build the replacement to completion, switch.

Mozilla did not do that. Servo stayed a research project, and Firefox got its parts. In the words of the Mozilla engineers describing the work, "We're swapping in parts from our experimental browser, Servo, and making massive improvements to other parts of the engine," and doing it "in place, component by component."

Each replacement went into the existing engine behind the existing interfaces, in a normal Firefox release, in front of real users.

What happened

The largest single piece was the CSS engine. Quantum CSS, also called Stylo, came directly from Servo. It replaced the part of Gecko that works out which styles apply to which elements, and it does that work in parallel across all of the cores in the machine.

Other pieces landed around it. Firefox moved to multiple processes, a long-running project that had become the default for all users before the Quantum release. A separate effort went through the browser looking for anything that made it feel slow and fixed those one by one.

Firefox Quantum shipped on November 14, 2017. Mozilla described it as "over twice as fast as Firefox from 6 months ago."

It was also not finished, and nobody pretended it was. The same week, Mozilla was explaining which parts of the plan were still to come, including a new graphics renderer from Servo scheduled for a later release. Quantum was a milestone in a sequence, not a cutover.

Why it worked

  • The product never stopped shipping. Firefox kept its regular release schedule through the entire replacement. There was no gap for a competitor to fill, which is the specific thing that sank Netscape.
  • Each component was a bounded bet. If the new CSS engine had not worked, Firefox would have shipped with the old one and the rest of the plan would have continued.
  • The risky ideas were proven somewhere else first. Servo let Mozilla find out what a parallel engine in a new language was really like without betting the product on the answer. Only the parts that worked moved over.
  • There were seams to cut along. A browser engine has natural internal boundaries: style, layout, graphics. Each could be replaced behind its existing interface. This is branch by abstraction, the in-process relative of the strangler fig.

What it still cost

Quantum included one clean break, and it is the instructive part.

Firefox's original add-ons could reach deep into the browser's internals. That power was a large part of Firefox's identity. It also made the internals impossible to change, because any change could break add-ons that depended on how things worked inside.

In August 2015 Mozilla announced that it would deprecate add-ons built on those internal technologies in favor of a narrower, stable interface called WebExtensions. Firefox 57, the Quantum release, was the first to run only WebExtensions. Add-ons that had not been rewritten stopped working.

Mozilla handled it about as well as a break like that can be handled: more than two years of notice, a published timeline with milestones, and a replacement API that shipped long before the old one was removed. It was still a real loss. Some add-ons could not be rebuilt on the new interface at all, and some long-time users never forgave it.

This is the same force that stretched the Python 3 migration to eleven years. Code you do not own, built on your internals, is the most expensive thing to move. Mozilla chose to take that cost in one release with long notice, and it did so because the engine work could not proceed otherwise.

The verdict

As an engineering migration this is close to the model: a core system replaced under load, in pieces, with each piece shipped and proven before the next one.

It is worth being precise about what that verdict covers. This file scores the migration, not the market. Quantum made Firefox fast again. Whether a faster engine was enough to change the browser's competitive position is a different question, and not one a migration strategy can answer.

What to take from it

  • Replace parts, not the whole. If the system has internal boundaries, each one is a place to swap a component without stopping the product.
  • Prove the risky idea outside the product. A research build can fail cheaply. A flagship cannot.
  • Budget for the one break you cannot avoid. There is usually exactly one compatibility promise that has to be broken to make progress. Find it early, announce it years ahead, and ship the replacement before you remove the original.
  • A milestone is not a finish line. Quantum shipped with parts of the plan still open. Shipping what was ready was the point.

Sources

  1. Mozilla - Introducing the New Firefox: Firefox Quantum (November 14, 2017)
  2. Lin Clark - Entering the Quantum Era: How Firefox got fast again (November 13, 2017)
  3. Lin Clark - Inside a super fast CSS engine: Quantum CSS, aka Stylo (August 22, 2017)
  4. Servo (software) - Wikipedia
  5. Mozilla Add-ons Blog - The Future of Developing Firefox Add-ons (August 21, 2015)
  6. Mozilla Add-ons Blog - The Road to Firefox 57: Compatibility Milestones (February 16, 2017)

Last updated November 27, 2026.