| 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": "[email protected]", "strict_min_version": "42.0" } } |
The browser_specific_settings key contains keys that are specific to a particular host application.
Firefox stores its browser specific settings in the gecko subkey, which has the following properties:
idabout:debugging). See Extensions and the Add-on ID to see when you need to specify an add-on ID.strict_min_versionstrict_max_versionupdate_urlSee the list of valid Gecko versions.
The extension ID must be one of the following:
[email protected]
The latter format is easier to generate and manipulate. Be aware that using a real email address here may attract spam.
For example:
"id": "[email protected]"
"id": "{daf44bf7-a45e-4450-979c-91cf07434c3d}"
Warning: Adding Edge-specific properties to the manifest caused an error prior to Firefox 69 which can prevent the extension from installing.
Microsoft Edge stores its browser specific settings in the edge subkey, which has the following properties:
browser_action_next_to_addressbarBoolean property which controls the placement of the browser action.
true is equivalent to setting browser_action.default_area to navbar.false is equivalent to setting browser_action.default_area to menupanel.Warning: Adding Safari-specific properties to the manifest caused an error prior to Firefox 69 which can prevent the extension from installing.
Safari stores its browser specific settings in the safari subkey, which has the following properties:
strict_min_versionstrict_max_versionExample with all possible keys. Note that most extensions will omit strict_max_version and update_url.
"browser_specific_settings": { "gecko": { "id": "[email protected]", "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" } }
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
browser_specific_settings |
No |
15-79 |
48
42
Mandatory before Firefox 48.
|
? |
No |
14
Supports
strict_min_version and strict_max_version in a safari block. |
? |
? |
48
42
Mandatory before Firefox 48.
|
? |
? |
? |
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings