Partnering/Repacks/Policy and Process

From MozillaWiki
Jump to: navigation, search


This document outlines the high level policy for Firefox custom bundles, applicable to all custom distributions of Firefox produced by Mozilla for partners. Some of these requirements may be in conflict with existing written agreements, otherwise all existing distributions are expected to come into compliance with these requirements as soon as possible, and no later than June 30, 2015. Some requirements will come into place over the first half of 2015, in order to allow time for any required changes to products or processes.

For more information on becoming a Mozilla distribution partner, please refer to Becoming a Mozilla Distribution Partner.

Review Process and Timelines

  • Changes to custom configurations must be submitted no later than three weeks prior to the next regularly scheduled release, in order to be included in custom builds for that release.
    • After this time, only significant bug fix changes will be considered for that release.
  • Beta builds are produced twice weekly, and upon approval reviewers will advise as to the next set of builds which will contain the approved changes.
  • Release candidate builds will generally be available one week prior to the target release date.
  • Partners are not permitted to distribute custom builds prior to the official Mozilla release.

For an overview of the change submission process, please refer to the instructions below.

Build Identification

  • Each unique configuration must be identified separately through a unique distribution ID.
  • For each new custom distribution, partners must clearly identify the target market(s) and languages for the desired configuration, as well as any other reasonable information necessary to understand the scope for any potential distribution.

Quality Requirements

  • Mozilla will review and approve all changes to custom configuration. Mozilla does not do formal Quality Assurance testing on custom bundles. Distributors are expected to verify that all of their customizations are working as intended in the provided builds.


  • All preference changes not explicitly required under existing agreements must be approved by Mozilla.
  • No preference changes will be permitted that negatively impact the security or user experience of end users.
  • Except where expressly covered by the distribution agreement, search default changes shall not be approved.


  • Bookmarks must be clearly labelled, and should link only to relevant content from the partner in question.


Effective as of Firefox 39

All bundled add-ons to be included with a custom distribution must already be signed in accordance with Mozilla's add-on signing policy. This will require that all bundled add-ons have passed full review through the AMO review process, whether that add-on is or is not distributed on AMO itself.

The process for submitting add-ons that are not to be hosted on AMO will be announced in the near future, and should be live in May 2015. If an add-on is already hosted on AMO at that time, signing will happen automatically. Distribution partners will have priority for reviews, please contact Partner Support for more details.

Revenue-impacting Changes

Effective as of Firefox 38

Firefox has a number of features that have revenue-bearing components, generally in the form of partnerships or paid placements. These features include Search, Tiles, and other potential features. Except where otherwise agreed under a formal custom distribution agreement, no changes shall be permitted that negatively impact the revenue potential of these features. This includes changes that would be otherwise permitted within the scope of an add-on under the AMO policy.

Submitting Changes

Version Control

Mozilla keeps all of our partner repack configuration files under version control in Mercurial (hg).

If you are unfamiliar with hg, Mozilla has some good dev resources for getting started:

The partner-repacks repository (repo) is publicly available here:

Creating a patch

This section assumes that you are already familiar with the basics of hg.

Here is a generalized workflow:

  • clone the partner-repacks repo
    • if you already have the repo, run hg pull && hg update -r default instead
  • make sure you don't have any existing changes in source clone by running hg status
  • make any necessary changes to your partner repack files
    • make sure you run hg add to add new files, or hg remove if you are removing files
  • commit changes to your local repository, hg commit ...
  • export the changeset using hg export REV, where REV is the revision number of the changeset, e.g.:
$ hg export -g tip > repack_config_changes_for_$PARTNERNAME.diff

Why create a patch?

All the partner repack configs are in version control. This lets us know when changes are made, who made them, and if something breaks, gives us the ability to revert back to a known-good version if there are problems.

If you're submitting changes for an existing repack, presumably you've already done some internal verification to make sure the changes are correct. By creating a patch of your changes as applied directly to the existing partner repacks configs in version control, you can be assured that your changes make it into the Mozilla system exactly as you intend.

If you provide a zip bundle of your changes (or simply a new xpi) instead of a patch, the first thing a Mozilla release engineer must do is unpack that bundle and manually move the new files into position against a copy of the repo. Mozilla release engineers are careful, but we aren't perfect. This is a manual process, and prone to error. We also don't know what your intentions are with some config changes. If there is any ambiguity in the bundle, files could end up in the wrong place.

Providing a exported patch against the configs in version control is the best way to ensure your changes are incorporated into the system as you expect.

Submitting a patch

The best way to submit a change to an existing partner repacks is via Bugzilla.

If you're new to bugzilla, the first step is to create an account.

To expedite the bug filing process, I've created a template that partners can use to quickly file bugs under the correct product & component:

Please remember to change $PARTNERNAME in the bug summary to reflect the partner you are submitting the config change for.

Add your exported diff of changes from hg as an attachment to the bug.

By default, you will automatically receive updates for any action taken on your bug. You can change which updates you receive in your Bugzilla Preferences.

Why use Bugzilla?

Mozilla release engineering uses bugzilla to track everything. If you don't submit your patch via bugzilla, the first thing the Mozilla release engineering team does is file a bug to cover the work to be performed and attach your submitted patch/bundle.

By filing your request directly in bugzilla, you automatically notify the correct people, have a record of your patch submission, and get updates whenever some performs an action on your ticket. You save the Mozilla team manual, potentially error-prone work, and get more ongoing insight into the process and the status of your request.