diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /comm/mail/components/extensions/schemas/sessions.json | |
parent | Initial commit. (diff) | |
download | thunderbird-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 '')
-rw-r--r-- | comm/mail/components/extensions/schemas/sessions.json | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/comm/mail/components/extensions/schemas/sessions.json b/comm/mail/components/extensions/schemas/sessions.json new file mode 100644 index 0000000000..3c2fdff165 --- /dev/null +++ b/comm/mail/components/extensions/schemas/sessions.json @@ -0,0 +1,76 @@ +[ + { + "namespace": "sessions", + "functions": [ + { + "name": "setTabValue", + "type": "function", + "description": "Store a key/value pair associated with a given tab.", + "async": true, + "parameters": [ + { + "name": "tabId", + "type": "integer", + "description": "ID of the tab with which you want to associate the data. Error is thrown if ID is invalid." + }, + { + "name": "key", + "type": "string", + "description": "Key that you can later use to retrieve this particular data value." + }, + { + "name": "value", + "type": "string" + } + ] + }, + { + "name": "getTabValue", + "type": "function", + "description": "Retrieve a previously stored value for a given tab, given its key.", + "async": "callback", + "parameters": [ + { + "name": "tabId", + "type": "integer", + "description": "ID of the tab whose data you are trying to retrieve. Error is thrown if ID is invalid." + }, + { + "name": "key", + "type": "string", + "description": "Key identifying the particular value to retrieve." + }, + { + "type": "function", + "name": "callback", + "optional": true, + "parameters": [ + { + "type": "string", + "optional": true + } + ] + } + ] + }, + { + "name": "removeTabValue", + "type": "function", + "description": "Remove a key/value pair from a given tab.", + "async": true, + "parameters": [ + { + "name": "tabId", + "type": "integer", + "description": "ID of the tab whose data you are trying to remove. Error is thrown if ID is invalid." + }, + { + "name": "key", + "type": "string", + "description": "Key identifying the particular value to remove." + } + ] + } + ] + } +] |