Source code
Revision control
Copy as Markdown
Other Tools
{
"title": "ProtectionsPanelMessage",
"description": "A message shown in the protections panel.",
"type": "object",
"properties": {
"content": {
"type": "object",
"properties": {
"title": {
"description": "The message title.",
},
"body": {
"description": "The body of the message.",
},
"link_text": {
"description": "The text of the call to action link.",
},
"cta_type": {
"description": "The type of URL open action.",
"type": "string",
"enum": ["OPEN_URL", "OPEN_PROTECTION_REPORT", "OPEN_ABOUT_PAGE"]
},
"cta_url": {
"description": "The URL to open when the call to action is clicked",
"type": "string",
"format": "moz-url-format"
},
"cta_where": {
"description": "How to open the cta.",
"type": "string",
"enum": ["current", "tabshifted", "tab", "save", "window"]
}
},
"dependantSchemas": {
"link_text": ["cta_type", "cta_url"],
"cta_type": ["link_text"],
"cta_url": ["link_text"],
"cta_where": ["link_text"]
},
"additionalProperties": false,
"required": ["title", "body"]
},
"template": {
"type": "string",
"const": "protections_panel"
},
"trigger": {
"description": "An action to trigger potentially showing the message. The action ID `protectionsPanelOpen` is required.",
"const": {
"id": "protectionsPanelOpen"
}
}
},
"required": ["content", "template", "trigger"],
"additionalProperties": true
}