docs.rodeo

MDN Web Docs mirror

browser_specific_settings

{{AddonSidebar}} 

Type Object
Mandatory Usually, no (but see also When do you need an Add-on ID?). Mandatory if the extension ID cannot be determined, see browser_specific_settings.gecko.id.
Example
"browser_specific_settings": {
  "gecko": {
    "id": "addon@example.com",
    "strict_min_version": "58.0"
  }
}

Description

The browser_specific_settings key contains keys that are specific to a particular host application.

Firefox (Gecko) properties

Firefox stores browser-specific settings in these sub-keys:

The gecko subkey supports these properties:

The gecko_android subkey supports these properties:

See the list of valid Gecko versions.

To support Firefox for Android without specifying a version range, the gecko_android subkey must be an empty object, i.e. "gecko_android": {}. Otherwise, the extension is only made available on desktop Firefox.

Extension ID format

The extension ID must be one of the following:

The latter format is easier to generate and manipulate. Be aware that using a real email address here may attract spam.

For example:

"id": "extensionname@example.org"
"id": "{daf44bf7-a45e-4450-979c-91cf07434c3d}"

Safari properties

Safari stores its browser-specific settings in the safari subkey, which has these properties:

Examples

Example with all possible keys. Note that most extensions omit strict_max_version and update_url.

"browser_specific_settings": {
  "gecko": {
    "id": "addon@example.com",
    "strict_min_version": "42.0",
    "strict_max_version": "50.*",
    "update_url": "https://example.com/updates.json"
  },
  "safari": {
    "strict_min_version": "14",
    "strict_max_version": "20"
  }
}

Browser compatibility

{{Compat}} 

In this article

View on MDN