summaryrefslogtreecommitdiffstats
path: root/toolkit/components/extensions/schemas/activity_log.json
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:44:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:44:51 +0000
commit9e3c08db40b8916968b9f30096c7be3f00ce9647 (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /toolkit/components/extensions/schemas/activity_log.json
parentInitial commit. (diff)
downloadthunderbird-upstream.tar.xz
thunderbird-upstream.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'toolkit/components/extensions/schemas/activity_log.json')
-rw-r--r--toolkit/components/extensions/schemas/activity_log.json101
1 files changed, 101 insertions, 0 deletions
diff --git a/toolkit/components/extensions/schemas/activity_log.json b/toolkit/components/extensions/schemas/activity_log.json
new file mode 100644
index 0000000000..7f60817539
--- /dev/null
+++ b/toolkit/components/extensions/schemas/activity_log.json
@@ -0,0 +1,101 @@
+[
+ {
+ "namespace": "manifest",
+ "types": [
+ {
+ "$extend": "PermissionPrivileged",
+ "choices": [
+ {
+ "type": "string",
+ "enum": ["activityLog"]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "namespace": "activityLog",
+ "description": "Monitor extension activity",
+ "permissions": ["activityLog"],
+ "events": [
+ {
+ "name": "onExtensionActivity",
+ "description": "Receives an activityItem for each logging event.",
+ "type": "function",
+ "parameters": [
+ {
+ "name": "details",
+ "type": "object",
+ "properties": {
+ "timeStamp": {
+ "$ref": "extensionTypes.Date",
+ "description": "The date string when this call is triggered."
+ },
+ "type": {
+ "type": "string",
+ "enum": [
+ "api_call",
+ "api_event",
+ "content_script",
+ "user_script"
+ ],
+ "description": "The type of log entry. api_call is a function call made by the extension and api_event is an event callback to the extension. content_script is logged when a content script is injected."
+ },
+ "viewType": {
+ "type": "string",
+ "optional": true,
+ "enum": [
+ "background",
+ "popup",
+ "sidebar",
+ "tab",
+ "devtools_page",
+ "devtools_panel"
+ ],
+ "description": "The type of view where the activity occurred. Content scripts will not have a viewType."
+ },
+ "name": {
+ "type": "string",
+ "description": "The name of the api call or event, or the script url if this is a content or user script event."
+ },
+ "data": {
+ "type": "object",
+ "properties": {
+ "args": {
+ "type": "array",
+ "optional": true,
+ "items": {
+ "type": "any"
+ },
+ "description": "A list of arguments passed to the call."
+ },
+ "result": {
+ "type": "object",
+ "optional": true,
+ "description": "The result of the call."
+ },
+ "tabId": {
+ "type": "integer",
+ "optional": true,
+ "description": "The tab associated with this event if it is a tab or content script."
+ },
+ "url": {
+ "type": "string",
+ "optional": true,
+ "description": "If the type is content_script, this is the url of the script that was injected."
+ }
+ }
+ }
+ }
+ }
+ ],
+ "extraParameters": [
+ {
+ "name": "id",
+ "type": "string"
+ }
+ ]
+ }
+ ]
+ }
+]