url

Use this policy type if you want to set a policy to a URL.

The difference to the string policy type is an additional validation for URLs. The validation only checks if the value starts with https://, http:// or file://.

Example JSON output

{
  "policies": {
    "AppUpdateURL": "https://example.com"
  }
}

Example screenshot

Example implementation

AppUpdateURL : {
  first_available : { mainstream : '62.0', esr : '60.2' },
  ui_category : 'updates-and-data',
  type : 'url',
  label : browser.i18n.getMessage('common_url'),
  mandatory : true
}

Mandatory properties

label

The value of this property is used as placeholder text of the input field.

Optional properties

mandatory

If set to true a validation is added to check that the input field is not empty.

Last updated