toolkit/components/extensions/schemas/native_manifest.json
author criss <ccozmuta@mozilla.com>
Mon, 18 Oct 2021 16:30:48 +0300
changeset 596179 ee8efced380b871deac4fba285955953a4a89ef5
parent 382103 a439e2ac43058989193daa201b764b96821bd8fa
permissions -rw-r--r--
Backed out changeset 21276955f659 (bug 1720926) for causing hybrid bustages on nsIPrincipal. CLOSED TREE

[
  {
    "namespace": "manifest",
    "types": [
      {
        "id": "NativeManifest",
        "description": "Represents a native manifest file",
        "choices": [
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "pattern": "^\\w+(\\.\\w+)*$"
              },
              "description": {
                "type": "string"
              },
              "path": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "enum": [
                  "pkcs11", "stdio"
                ]
              },
              "allowed_extensions": {
                "type": "array",
                "minItems": 1,
                "items": {
                  "$ref": "manifest.ExtensionID"
                }
              }
            }
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "$ref": "manifest.ExtensionID"
              },
              "description": {
                "type": "string"
              },
              "data": {
                "type": "object",
                "additionalProperties": {
                  "type": "any"
                }
              },
              "type": {
                "type": "string",
                "enum": [
                  "storage"
                ]
              }
            }
          }
        ]
      }
    ]
  }
]