Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/toolkit/components/extensions/schemas/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 3 kB image not shown  

Quelle  permissions.json   Sprache: unbekannt

 
[
  {
    "namespace": "permissions",
    "types": [
      {
        "id": "Permissions",
        "type": "object",
        "properties": {
          "permissions": {
            "type": "array",
            "items": {
              "choices": [
                { "$ref": "manifest.OptionalPermission" },
                { "$ref": "manifest.OptionalOnlyPermission" }
              ]
            },
            "optional": true,
            "default": []
          },
          "origins": {
            "type": "array",
            "items": { "$ref": "manifest.MatchPattern" },
            "optional": true,
            "default": []
          }
        }
      },
      {
        "id": "AnyPermissions",
        "type": "object",
        "properties": {
          "permissions": {
            "type": "array",
            "items": {
              "choices": [
                { "$ref": "manifest.Permission" },
                { "$ref": "manifest.OptionalOnlyPermission" }
              ]
            },
            "optional": true,
            "default": []
          },
          "origins": {
            "type": "array",
            "items": { "$ref": "manifest.MatchPattern" },
            "optional": true,
            "default": []
          }
        }
      }
    ],
    "functions": [
      {
        "name": "getAll",
        "type": "function",
        "async": "callback",
        "description": "Get a list of all the extension's permissions.",
        "parameters": [
          {
            "name": "callback",
            "type": "function",
            "parameters": [
              {
                "name": "permissions",
                "$ref": "AnyPermissions"
              }
            ]
          }
        ]
      },
      {
        "name": "contains",
        "type": "function",
        "async": "callback",
        "description": "Check if the extension has the given permissions.",
        "parameters": [
          {
            "name": "permissions",
            "$ref": "AnyPermissions"
          },
          {
            "name": "callback",
            "type": "function",
            "parameters": [
              {
                "name": "result",
                "type": "boolean"
              }
            ]
          }
        ]
      },
      {
        "name": "request",
        "type": "function",
        "allowedContexts": ["content"],
        "async": "callback",
        "requireUserInput": true,
        "description": "Request the given permissions.",
        "parameters": [
          {
            "name": "permissions",
            "$ref": "Permissions"
          },
          {
            "name": "callback",
            "type": "function",
            "parameters": [
              {
                "name": "granted",
                "type": "boolean"
              }
            ]
          }
        ]
      },
      {
        "name": "remove",
        "type": "function",
        "async": "callback",
        "description": "Relinquish the given permissions.",
        "parameters": [
          {
            "name": "permissions",
            "$ref": "Permissions"
          },
          {
            "name": "callback",
            "type": "function",
            "parameters": []
          }
        ]
      }
    ],
    "events": [
      {
        "name": "onAdded",
        "type": "function",
        "description": "Fired when the extension acquires new permissions.",
        "parameters": [
          {
            "name": "permissions",
            "$ref": "Permissions"
          }
        ]
      },
      {
        "name": "onRemoved",
        "type": "function",
        "description": "Fired when permissions are removed from the extension.",
        "parameters": [
          {
            "name": "permissions",
            "$ref": "Permissions"
          }
        ]
      }
    ]
  }
]

[ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet)  ]