webext-schema 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/update.js +1 -1
- package/package.json +5 -5
- package/schemas/central/webext.json +6 -20
- package/schemas/mail/mailext.json +189 -60
- package/schemas/release/webext.json +63 -2
package/modules/update.js
CHANGED
|
@@ -8,7 +8,7 @@ import { URL } from 'url';
|
|
|
8
8
|
import JSON5 from 'json5';
|
|
9
9
|
import { createFile } from './file-util.js';
|
|
10
10
|
import { getType, isString } from './common.js';
|
|
11
|
-
import commander from 'commander';
|
|
11
|
+
import { program as commander } from 'commander';
|
|
12
12
|
import fetch from 'node-fetch';
|
|
13
13
|
import path from 'path';
|
|
14
14
|
import process from 'process';
|
package/package.json
CHANGED
|
@@ -24,23 +24,23 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"camelize": "^1.0.0",
|
|
27
|
-
"commander": "^
|
|
27
|
+
"commander": "^9.0.0",
|
|
28
28
|
"decamelize": "^6.0.0",
|
|
29
29
|
"json5": "^2.2.0",
|
|
30
30
|
"node-fetch": "^3.2.0",
|
|
31
|
-
"sinon": "^
|
|
31
|
+
"sinon": "^13.0.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"c8": "^7.11.0",
|
|
35
|
-
"chai": "^4.3.
|
|
35
|
+
"chai": "^4.3.6",
|
|
36
36
|
"eslint": "^7.32.0",
|
|
37
37
|
"eslint-config-standard": "^16.0.3",
|
|
38
38
|
"eslint-plugin-import": "^2.25.4",
|
|
39
|
-
"eslint-plugin-jsdoc": "^37.
|
|
39
|
+
"eslint-plugin-jsdoc": "^37.7.0",
|
|
40
40
|
"eslint-plugin-node": "^11.1.0",
|
|
41
41
|
"eslint-plugin-promise": "^5.2.0",
|
|
42
42
|
"mocha": "^9.2.0",
|
|
43
43
|
"nock": "^13.2.2"
|
|
44
44
|
},
|
|
45
|
-
"version": "2.0.
|
|
45
|
+
"version": "2.0.8"
|
|
46
46
|
}
|
|
@@ -12896,7 +12896,9 @@
|
|
|
12896
12896
|
},
|
|
12897
12897
|
"persistent": {
|
|
12898
12898
|
"optional": true,
|
|
12899
|
-
"
|
|
12899
|
+
"type": "boolean",
|
|
12900
|
+
"max_manifest_version": 2,
|
|
12901
|
+
"default": true
|
|
12900
12902
|
}
|
|
12901
12903
|
},
|
|
12902
12904
|
"additionalProperties": {
|
|
@@ -12914,7 +12916,9 @@
|
|
|
12914
12916
|
},
|
|
12915
12917
|
"persistent": {
|
|
12916
12918
|
"optional": true,
|
|
12917
|
-
"
|
|
12919
|
+
"type": "boolean",
|
|
12920
|
+
"max_manifest_version": 2,
|
|
12921
|
+
"default": true
|
|
12918
12922
|
}
|
|
12919
12923
|
},
|
|
12920
12924
|
"additionalProperties": {
|
|
@@ -13537,24 +13541,6 @@
|
|
|
13537
13541
|
"id": "UnrecognizedProperty",
|
|
13538
13542
|
"type": "any",
|
|
13539
13543
|
"deprecated": "An unexpected property was found in the WebExtension manifest."
|
|
13540
|
-
},
|
|
13541
|
-
{
|
|
13542
|
-
"id": "PersistentBackgroundProperty",
|
|
13543
|
-
"choices": [
|
|
13544
|
-
{
|
|
13545
|
-
"type": "boolean",
|
|
13546
|
-
"enum": [
|
|
13547
|
-
true
|
|
13548
|
-
]
|
|
13549
|
-
},
|
|
13550
|
-
{
|
|
13551
|
-
"type": "boolean",
|
|
13552
|
-
"enum": [
|
|
13553
|
-
false
|
|
13554
|
-
],
|
|
13555
|
-
"deprecated": "Event pages are not currently supported. This will run as a persistent background page."
|
|
13556
|
-
}
|
|
13557
|
-
]
|
|
13558
13544
|
}
|
|
13559
13545
|
]
|
|
13560
13546
|
}
|
|
@@ -2979,6 +2979,59 @@
|
|
|
2979
2979
|
}
|
|
2980
2980
|
]
|
|
2981
2981
|
}
|
|
2982
|
+
],
|
|
2983
|
+
"events": [
|
|
2984
|
+
{
|
|
2985
|
+
"name": "onCreated",
|
|
2986
|
+
"type": "function",
|
|
2987
|
+
"description": "Fired when a new account has been created.",
|
|
2988
|
+
"parameters": [
|
|
2989
|
+
{
|
|
2990
|
+
"name": "id",
|
|
2991
|
+
"type": "string"
|
|
2992
|
+
},
|
|
2993
|
+
{
|
|
2994
|
+
"name": "account",
|
|
2995
|
+
"$ref": "MailAccount"
|
|
2996
|
+
}
|
|
2997
|
+
]
|
|
2998
|
+
},
|
|
2999
|
+
{
|
|
3000
|
+
"name": "onDeleted",
|
|
3001
|
+
"type": "function",
|
|
3002
|
+
"description": "Fired when an account has been removed.",
|
|
3003
|
+
"parameters": [
|
|
3004
|
+
{
|
|
3005
|
+
"name": "id",
|
|
3006
|
+
"type": "string"
|
|
3007
|
+
}
|
|
3008
|
+
]
|
|
3009
|
+
},
|
|
3010
|
+
{
|
|
3011
|
+
"name": "onUpdated",
|
|
3012
|
+
"type": "function",
|
|
3013
|
+
"description": "Fired when a property of an account has been modified. Folders and identities of accounts are not monitored by this event, use the dedicated folder and identity events instead. A changed ``defaultIdentity`` is reported only after a different identity has been assigned as default identity, but not after a property of the default identity has been changed.",
|
|
3014
|
+
"parameters": [
|
|
3015
|
+
{
|
|
3016
|
+
"name": "id",
|
|
3017
|
+
"type": "string"
|
|
3018
|
+
},
|
|
3019
|
+
{
|
|
3020
|
+
"name": "changedValues",
|
|
3021
|
+
"type": "object",
|
|
3022
|
+
"properties": {
|
|
3023
|
+
"name": {
|
|
3024
|
+
"type": "string",
|
|
3025
|
+
"description": "The human-friendly name of this account."
|
|
3026
|
+
},
|
|
3027
|
+
"defaultIdentity": {
|
|
3028
|
+
"$ref": "identities.MailIdentity",
|
|
3029
|
+
"description": "The default identity of this account."
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
3032
|
+
}
|
|
3033
|
+
]
|
|
3034
|
+
}
|
|
2982
3035
|
]
|
|
2983
3036
|
}
|
|
2984
3037
|
],
|
|
@@ -3259,7 +3312,7 @@
|
|
|
3259
3312
|
{
|
|
3260
3313
|
"name": "query",
|
|
3261
3314
|
"type": "string",
|
|
3262
|
-
"description": "The boolean query expression corresponding to the search. Note
|
|
3315
|
+
"description": "The boolean query expression corresponding to the search. **Note:** This parameter may change in future releases of Thunderbird.",
|
|
3263
3316
|
"optional": true
|
|
3264
3317
|
}
|
|
3265
3318
|
],
|
|
@@ -3952,7 +4005,7 @@
|
|
|
3952
4005
|
"items": {
|
|
3953
4006
|
"$ref": "ThemeIcons"
|
|
3954
4007
|
},
|
|
3955
|
-
"description": "Specifies dark and light icons to be used with themes. The ``light`` icon is used on dark backgrounds and vice versa. Note
|
|
4008
|
+
"description": "Specifies dark and light icons to be used with themes. The ``light`` icon is used on dark backgrounds and vice versa. **Note:** The default theme uses the ``default_icon`` for light backgrounds (if specified)."
|
|
3956
4009
|
},
|
|
3957
4010
|
"default_popup": {
|
|
3958
4011
|
"type": "string",
|
|
@@ -4464,7 +4517,7 @@
|
|
|
4464
4517
|
{
|
|
4465
4518
|
"name": "onClicked",
|
|
4466
4519
|
"type": "function",
|
|
4467
|
-
"description": "Fired when a browserAction icon is clicked.
|
|
4520
|
+
"description": "Fired when a browserAction icon is clicked. This event will not fire if the browserAction has a popup. This is a user input event handler. For asynchronous listeners some `restrictions <https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/User_actions>`__ apply.",
|
|
4468
4521
|
"parameters": [
|
|
4469
4522
|
{
|
|
4470
4523
|
"name": "tab",
|
|
@@ -4706,6 +4759,12 @@
|
|
|
4706
4759
|
"File"
|
|
4707
4760
|
]
|
|
4708
4761
|
},
|
|
4762
|
+
"reuse_uploads": {
|
|
4763
|
+
"description": "If a previously uploaded cloud file attachment is reused at a later time in a different message, Thunderbird may use the already known ``url`` and ``templateInfo`` values without triggering the registered :ref:`cloudFile.onFileUpload` listener again. Setting this option to false will always trigger the registered listener, providing the already known values through the ``relatedFileInfo`` parameter of the :ref:`cloudFile.onFileUpload` event, to let the provider decide how to handle these cases.",
|
|
4764
|
+
"type": "boolean",
|
|
4765
|
+
"optional": true,
|
|
4766
|
+
"default": true
|
|
4767
|
+
},
|
|
4709
4768
|
"management_url": {
|
|
4710
4769
|
"type": "string",
|
|
4711
4770
|
"format": "relativeUrl",
|
|
@@ -4764,6 +4823,12 @@
|
|
|
4764
4823
|
"name": "tab",
|
|
4765
4824
|
"$ref": "tabs.Tab",
|
|
4766
4825
|
"description": "The tab where the upload was initiated. Currently only available for the message composer."
|
|
4826
|
+
},
|
|
4827
|
+
{
|
|
4828
|
+
"$ref": "RelatedCloudFile",
|
|
4829
|
+
"name": "relatedFileInfo",
|
|
4830
|
+
"optional": true,
|
|
4831
|
+
"description": "Information about an already uploaded file, which is related to this upload."
|
|
4767
4832
|
}
|
|
4768
4833
|
],
|
|
4769
4834
|
"returns": {
|
|
@@ -4793,7 +4858,7 @@
|
|
|
4793
4858
|
},
|
|
4794
4859
|
"templateInfo": {
|
|
4795
4860
|
"$ref": "CloudFileTemplateInfo",
|
|
4796
|
-
"description": "
|
|
4861
|
+
"description": "Additional file information used in the cloud file entry added to the message.",
|
|
4797
4862
|
"optional": true
|
|
4798
4863
|
}
|
|
4799
4864
|
}
|
|
@@ -5042,6 +5107,37 @@
|
|
|
5042
5107
|
]
|
|
5043
5108
|
}
|
|
5044
5109
|
}
|
|
5110
|
+
},
|
|
5111
|
+
{
|
|
5112
|
+
"id": "RelatedCloudFile",
|
|
5113
|
+
"type": "object",
|
|
5114
|
+
"description": "Information about an already uploaded cloud file, which is related to a new upload. For example if the content of a cloud attachment is updated, if a repeatedly used cloud attachment is renamed (and therefore should be re-uploaded to not invalidate existing links) or if the provider has its manifest property ``reuse_uploads`` set to ``false``.",
|
|
5115
|
+
"properties": {
|
|
5116
|
+
"id": {
|
|
5117
|
+
"type": "integer",
|
|
5118
|
+
"minimum": 1,
|
|
5119
|
+
"optional": true,
|
|
5120
|
+
"description": "The identifier for the related file. In some circumstances, the id is unavailable."
|
|
5121
|
+
},
|
|
5122
|
+
"url": {
|
|
5123
|
+
"type": "string",
|
|
5124
|
+
"description": "The URL where the upload of the related file can be accessed.",
|
|
5125
|
+
"optional": true
|
|
5126
|
+
},
|
|
5127
|
+
"templateInfo": {
|
|
5128
|
+
"$ref": "CloudFileTemplateInfo",
|
|
5129
|
+
"description": "Additional information of the related file, used in the cloud file entry added to the message.",
|
|
5130
|
+
"optional": true
|
|
5131
|
+
},
|
|
5132
|
+
"name": {
|
|
5133
|
+
"type": "string",
|
|
5134
|
+
"description": "Filename of the related file."
|
|
5135
|
+
},
|
|
5136
|
+
"dataChanged": {
|
|
5137
|
+
"type": "boolean",
|
|
5138
|
+
"description": "The content of the new upload differs from the related file."
|
|
5139
|
+
}
|
|
5140
|
+
}
|
|
5045
5141
|
}
|
|
5046
5142
|
],
|
|
5047
5143
|
"functions": [
|
|
@@ -5309,17 +5405,17 @@
|
|
|
5309
5405
|
},
|
|
5310
5406
|
"body": {
|
|
5311
5407
|
"type": "string",
|
|
5312
|
-
"description": "The HTML content of the message.
|
|
5408
|
+
"description": "The HTML content of the message.",
|
|
5313
5409
|
"optional": true
|
|
5314
5410
|
},
|
|
5315
5411
|
"plainTextBody": {
|
|
5316
5412
|
"type": "string",
|
|
5317
|
-
"description": "The plain text content of the message.
|
|
5413
|
+
"description": "The plain text content of the message.",
|
|
5318
5414
|
"optional": true
|
|
5319
5415
|
},
|
|
5320
5416
|
"isPlainText": {
|
|
5321
5417
|
"type": "boolean",
|
|
5322
|
-
"description": "
|
|
5418
|
+
"description": "Whether the message is an HTML message or a plain text message.",
|
|
5323
5419
|
"optional": true
|
|
5324
5420
|
},
|
|
5325
5421
|
"attachments": {
|
|
@@ -5334,7 +5430,7 @@
|
|
|
5334
5430
|
}
|
|
5335
5431
|
]
|
|
5336
5432
|
},
|
|
5337
|
-
"description": "
|
|
5433
|
+
"description": "Only used in the begin* functions. Attachments to add to the message.",
|
|
5338
5434
|
"optional": true
|
|
5339
5435
|
}
|
|
5340
5436
|
}
|
|
@@ -5396,7 +5492,7 @@
|
|
|
5396
5492
|
{
|
|
5397
5493
|
"name": "details",
|
|
5398
5494
|
"$ref": "ComposeDetails",
|
|
5399
|
-
"description": "The current state of the compose window. This is functionally the same as the :ref:`compose.getComposeDetails` function."
|
|
5495
|
+
"description": "The current state of the compose window. This is functionally the same as calling the :ref:`compose.getComposeDetails` function."
|
|
5400
5496
|
}
|
|
5401
5497
|
],
|
|
5402
5498
|
"returns": {
|
|
@@ -5410,7 +5506,7 @@
|
|
|
5410
5506
|
"details": {
|
|
5411
5507
|
"$ref": "ComposeDetails",
|
|
5412
5508
|
"optional": true,
|
|
5413
|
-
"description": "Updates the compose window.
|
|
5509
|
+
"description": "Updates the compose window. This is functionally the same as calling the :ref:`compose.setComposeDetails` function."
|
|
5414
5510
|
}
|
|
5415
5511
|
}
|
|
5416
5512
|
}
|
|
@@ -5489,7 +5585,7 @@
|
|
|
5489
5585
|
{
|
|
5490
5586
|
"name": "beginNew",
|
|
5491
5587
|
"type": "function",
|
|
5492
|
-
"description": "Open a new message compose window
|
|
5588
|
+
"description": "Open a new message compose window.\n\n**Note:** The compose format can be set by ``details.isPlainText`` or by specifying only one of ``details.body`` or ``details.plainTextBody``. Otherwise the default compose format of the selected identity is used.\n\n**Note:** Specifying ``details.body`` and ``details.plainTextBody`` without also specifying ``details.isPlainText`` threw an exception in Thunderbird up to version 97. Since Thunderbird 98, this combination creates a compose window with the compose format of the selected identity, using the matching ``details.body`` or ``details.plainTextBody`` value.\n\n**Note:** If no identity is specified, this function is using the default identity and not the identity of the referenced message.",
|
|
5493
5589
|
"async": "callback",
|
|
5494
5590
|
"parameters": [
|
|
5495
5591
|
{
|
|
@@ -5520,7 +5616,7 @@
|
|
|
5520
5616
|
{
|
|
5521
5617
|
"name": "beginReply",
|
|
5522
5618
|
"type": "function",
|
|
5523
|
-
"description": "Open a new message compose window replying to a given message
|
|
5619
|
+
"description": "Open a new message compose window replying to a given message.\n\n**Note:** The compose format can be set by ``details.isPlainText`` or by specifying only one of ``details.body`` or ``details.plainTextBody``. Otherwise the default compose format of the selected identity is used.\n\n**Note:** Specifying ``details.body`` and ``details.plainTextBody`` without also specifying ``details.isPlainText`` threw an exception in Thunderbird up to version 97. Since Thunderbird 98, this combination creates a compose window with the compose format of the selected identity, using the matching ``details.body`` or ``details.plainTextBody`` value.\n\n**Note:** If no identity is specified, this function is using the default identity and not the identity of the referenced message.",
|
|
5524
5620
|
"async": "callback",
|
|
5525
5621
|
"parameters": [
|
|
5526
5622
|
{
|
|
@@ -5560,7 +5656,7 @@
|
|
|
5560
5656
|
{
|
|
5561
5657
|
"name": "beginForward",
|
|
5562
5658
|
"type": "function",
|
|
5563
|
-
"description": "Open a new message compose window forwarding a given message
|
|
5659
|
+
"description": "Open a new message compose window forwarding a given message.\n\n**Note:** The compose format can be set by ``details.isPlainText`` or by specifying only one of ``details.body`` or ``details.plainTextBody``. Otherwise the default compose format of the selected identity is used.\n\n**Note:** Specifying ``details.body`` and ``details.plainTextBody`` without also specifying ``details.isPlainText`` threw an exception in Thunderbird up to version 97. Since Thunderbird 98, this combination creates a compose window with the compose format of the selected identity, using the matching ``details.body`` or ``details.plainTextBody`` value.\n\n**Note:** If no identity is specified, this function is using the default identity and not the identity of the referenced message.",
|
|
5564
5660
|
"async": "callback",
|
|
5565
5661
|
"parameters": [
|
|
5566
5662
|
{
|
|
@@ -5626,7 +5722,7 @@
|
|
|
5626
5722
|
"name": "setComposeDetails",
|
|
5627
5723
|
"type": "function",
|
|
5628
5724
|
"async": true,
|
|
5629
|
-
"description": "Updates the compose window.
|
|
5725
|
+
"description": "Updates the compose window. Only fields that are to be changed should be specified. Currently only a limited amount of information can be set, more will be added in later versions.\n\n**Note:** The compose format of an existing compose window cannot be changed. Since Thunderbird 98, setting conflicting values for ``details.body``, ``details.plainTextBody`` or ``details.isPlaintext`` no longer throw an exception, instead the compose window chooses the matching ``details.body`` or ``details.plainTextBody`` value and ignores the other.",
|
|
5630
5726
|
"permissions": [
|
|
5631
5727
|
"compose"
|
|
5632
5728
|
],
|
|
@@ -5638,8 +5734,7 @@
|
|
|
5638
5734
|
},
|
|
5639
5735
|
{
|
|
5640
5736
|
"name": "details",
|
|
5641
|
-
"$ref": "ComposeDetails"
|
|
5642
|
-
"description": "The compose format of an already opened compose window cannot be changed. Setting ``details.body``, ``details.plainTextBody`` or ``details.isPlaintext`` will fail if the compose format of the compose window does not match. Use :ref:`compose.getComposeDetails` to get the current compose format."
|
|
5737
|
+
"$ref": "ComposeDetails"
|
|
5643
5738
|
}
|
|
5644
5739
|
]
|
|
5645
5740
|
},
|
|
@@ -5889,7 +5984,7 @@
|
|
|
5889
5984
|
"items": {
|
|
5890
5985
|
"$ref": "ThemeIcons"
|
|
5891
5986
|
},
|
|
5892
|
-
"description": "Specifies dark and light icons to be used with themes. The ``light`` icon is used on dark backgrounds and vice versa. Note
|
|
5987
|
+
"description": "Specifies dark and light icons to be used with themes. The ``light`` icon is used on dark backgrounds and vice versa. **Note:** The default theme uses the ``default_icon`` for light backgrounds (if specified)."
|
|
5893
5988
|
},
|
|
5894
5989
|
"default_popup": {
|
|
5895
5990
|
"type": "string",
|
|
@@ -6401,7 +6496,7 @@
|
|
|
6401
6496
|
{
|
|
6402
6497
|
"name": "onClicked",
|
|
6403
6498
|
"type": "function",
|
|
6404
|
-
"description": "Fired when a composeAction icon is clicked.
|
|
6499
|
+
"description": "Fired when a composeAction icon is clicked. This event will not fire if the composeAction has a popup. This is a user input event handler. For asynchronous listeners some `restrictions <https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/User_actions>`__ apply.",
|
|
6405
6500
|
"parameters": [
|
|
6406
6501
|
{
|
|
6407
6502
|
"name": "tab",
|
|
@@ -7282,7 +7377,7 @@
|
|
|
7282
7377
|
},
|
|
7283
7378
|
"sortType": {
|
|
7284
7379
|
"type": "string",
|
|
7285
|
-
"description": "Note
|
|
7380
|
+
"description": "**Note:** ``sortType`` and ``sortOrder`` depend on each other, so both should be present, or neither.",
|
|
7286
7381
|
"optional": true,
|
|
7287
7382
|
"enum": [
|
|
7288
7383
|
"none",
|
|
@@ -7309,7 +7404,7 @@
|
|
|
7309
7404
|
},
|
|
7310
7405
|
"sortOrder": {
|
|
7311
7406
|
"type": "string",
|
|
7312
|
-
"description": "Note
|
|
7407
|
+
"description": "**Note:** ``sortType`` and ``sortOrder`` depend on each other, so both should be present, or neither.",
|
|
7313
7408
|
"optional": true,
|
|
7314
7409
|
"enum": [
|
|
7315
7410
|
"none",
|
|
@@ -7757,6 +7852,8 @@
|
|
|
7757
7852
|
"message_list",
|
|
7758
7853
|
"folder_pane",
|
|
7759
7854
|
"compose_attachments",
|
|
7855
|
+
"message_attachments",
|
|
7856
|
+
"all_message_attachments",
|
|
7760
7857
|
"tools_menu"
|
|
7761
7858
|
],
|
|
7762
7859
|
"description": "The different contexts a menu can appear in. Specifying <code>all</code> is equivalent to the combination of all other contexts excluding <code>tab</code> and <code>tools_menu</code>. More information about each context can be found in the `Supported UI Elements <https://developer.thunderbird.net/add-ons/mailextensions/supported-ui-elements#menu-items>`__ article on developer.thunderbird.net."
|
|
@@ -7775,7 +7872,7 @@
|
|
|
7775
7872
|
{
|
|
7776
7873
|
"id": "OnShowData",
|
|
7777
7874
|
"type": "object",
|
|
7778
|
-
"description": "Information sent when a context menu is being shown.
|
|
7875
|
+
"description": "Information sent when a context menu is being shown. Some properties are only included if the extension has host permission for the given context, for example :permission:`activeTab` for content tabs, :permission:`compose` for compose tabs and :permission:`messagesRead` for message display tabs.",
|
|
7779
7876
|
"properties": {
|
|
7780
7877
|
"menuIds": {
|
|
7781
7878
|
"description": "A list of IDs of the menu items that were shown.",
|
|
@@ -7798,76 +7895,101 @@
|
|
|
7798
7895
|
"$ref": "ContextType"
|
|
7799
7896
|
}
|
|
7800
7897
|
},
|
|
7801
|
-
"viewType": {
|
|
7802
|
-
"$ref": "extension.ViewType",
|
|
7803
|
-
"optional": true
|
|
7804
|
-
},
|
|
7805
7898
|
"editable": {
|
|
7806
|
-
"type": "boolean"
|
|
7899
|
+
"type": "boolean",
|
|
7900
|
+
"description": "A flag indicating whether the element is editable (text input, textarea, etc.)."
|
|
7807
7901
|
},
|
|
7808
7902
|
"mediaType": {
|
|
7809
7903
|
"type": "string",
|
|
7810
|
-
"optional": true
|
|
7904
|
+
"optional": true,
|
|
7905
|
+
"description": "One of 'image', 'video', or 'audio' if the context menu was activated on one of these types of elements."
|
|
7811
7906
|
},
|
|
7812
|
-
"
|
|
7813
|
-
"
|
|
7814
|
-
"
|
|
7815
|
-
"
|
|
7907
|
+
"viewType": {
|
|
7908
|
+
"$ref": "extension.ViewType",
|
|
7909
|
+
"optional": true,
|
|
7910
|
+
"description": "The type of view where the menu is shown. May be unset if the menu is not associated with a view."
|
|
7816
7911
|
},
|
|
7817
7912
|
"linkText": {
|
|
7818
7913
|
"type": "string",
|
|
7819
|
-
"
|
|
7820
|
-
"
|
|
7914
|
+
"optional": true,
|
|
7915
|
+
"description": "If the element is a link, the text of that link. **Note:** Host permission is required."
|
|
7916
|
+
},
|
|
7917
|
+
"linkUrl": {
|
|
7918
|
+
"type": "string",
|
|
7919
|
+
"optional": true,
|
|
7920
|
+
"description": "If the element is a link, the URL it points to. **Note:** Host permission is required."
|
|
7821
7921
|
},
|
|
7822
7922
|
"srcUrl": {
|
|
7823
7923
|
"type": "string",
|
|
7824
|
-
"description": "Host permission is required.",
|
|
7924
|
+
"description": "Will be present for elements with a 'src' URL. **Note:** Host permission is required.",
|
|
7825
7925
|
"optional": true
|
|
7826
7926
|
},
|
|
7827
7927
|
"pageUrl": {
|
|
7828
7928
|
"type": "string",
|
|
7829
|
-
"description": "Host permission is required.",
|
|
7929
|
+
"description": "The URL of the page where the menu item was clicked. This property is not set if the click occurred in a context where there is no current page, such as in a launcher context menu. **Note:** Host permission is required.",
|
|
7830
7930
|
"optional": true
|
|
7831
7931
|
},
|
|
7832
7932
|
"frameUrl": {
|
|
7833
7933
|
"type": "string",
|
|
7834
|
-
"description": "Host permission is required.",
|
|
7934
|
+
"description": "The URL of the frame of the element where the context menu was clicked, if it was in a frame. **Note:** Host permission is required.",
|
|
7835
7935
|
"optional": true
|
|
7836
7936
|
},
|
|
7837
7937
|
"selectionText": {
|
|
7838
7938
|
"type": "string",
|
|
7839
|
-
"description": "Host permission is required.",
|
|
7939
|
+
"description": "The text for the context selection, if any. **Note:** Host permission is required.",
|
|
7840
7940
|
"optional": true
|
|
7841
7941
|
},
|
|
7842
7942
|
"targetElementId": {
|
|
7843
7943
|
"type": "integer",
|
|
7844
|
-
"optional": true
|
|
7944
|
+
"optional": true,
|
|
7945
|
+
"description": "An identifier of the clicked content element, if any. Use menus.getTargetElement in the page to find the corresponding element."
|
|
7845
7946
|
},
|
|
7846
7947
|
"fieldId": {
|
|
7847
7948
|
"type": "string",
|
|
7848
|
-
"optional": true
|
|
7949
|
+
"optional": true,
|
|
7950
|
+
"description": "An identifier of the clicked Thunderbird UI element, if any.",
|
|
7951
|
+
"enum": [
|
|
7952
|
+
"composeSubject",
|
|
7953
|
+
"composeTo",
|
|
7954
|
+
"composeCc",
|
|
7955
|
+
"composeBcc",
|
|
7956
|
+
"composeReplyTo",
|
|
7957
|
+
"composeNewsgroupTo"
|
|
7958
|
+
]
|
|
7849
7959
|
},
|
|
7850
7960
|
"selectedMessages": {
|
|
7851
7961
|
"$ref": "messages.MessageList",
|
|
7852
|
-
"optional": true
|
|
7962
|
+
"optional": true,
|
|
7963
|
+
"description": "The selected messages, if the context menu was opened in the message list. The <permission>messagesRead</permission> permission is required."
|
|
7853
7964
|
},
|
|
7854
7965
|
"displayedFolder": {
|
|
7855
7966
|
"$ref": "folders.MailFolder",
|
|
7856
|
-
"optional": true
|
|
7967
|
+
"optional": true,
|
|
7968
|
+
"description": "The displayed folder, if the context menu was opened in the message list. The <permission>accountsRead</permission> permission is required."
|
|
7857
7969
|
},
|
|
7858
7970
|
"selectedFolder": {
|
|
7859
7971
|
"$ref": "folders.MailFolder",
|
|
7860
|
-
"optional": true
|
|
7972
|
+
"optional": true,
|
|
7973
|
+
"description": "The selected folder, if the context menu was opened in the folder pane. The <permission>accountsRead</permission> permission is required."
|
|
7861
7974
|
},
|
|
7862
7975
|
"selectedAccount": {
|
|
7863
7976
|
"$ref": "accounts.MailAccount",
|
|
7864
|
-
"optional": true
|
|
7977
|
+
"optional": true,
|
|
7978
|
+
"description": "The selected account, if the context menu was opened on an account entry in the folder pane. The <permission>accountsRead</permission> permission is required."
|
|
7865
7979
|
},
|
|
7866
7980
|
"attachments": {
|
|
7867
7981
|
"type": "array",
|
|
7868
7982
|
"optional": true,
|
|
7983
|
+
"description": "The selected attachments. The <permission>compose</permission> permission is required to return attachments of a message being composed. The <permission>messagesRead</permission> permission is required to return attachments of displayed messages.",
|
|
7869
7984
|
"items": {
|
|
7870
|
-
"
|
|
7985
|
+
"choices": [
|
|
7986
|
+
{
|
|
7987
|
+
"$ref": "compose.ComposeAttachment"
|
|
7988
|
+
},
|
|
7989
|
+
{
|
|
7990
|
+
"$ref": "messages.MessageAttachment"
|
|
7991
|
+
}
|
|
7992
|
+
]
|
|
7871
7993
|
}
|
|
7872
7994
|
}
|
|
7873
7995
|
}
|
|
@@ -7900,16 +8022,20 @@
|
|
|
7900
8022
|
"optional": true,
|
|
7901
8023
|
"description": "The parent ID, if any, for the item clicked."
|
|
7902
8024
|
},
|
|
7903
|
-
"
|
|
7904
|
-
"
|
|
7905
|
-
"
|
|
7906
|
-
"description": "The type of view where the menu is clicked. May be unset if the menu is not associated with a view."
|
|
8025
|
+
"editable": {
|
|
8026
|
+
"type": "boolean",
|
|
8027
|
+
"description": "A flag indicating whether the element is editable (text input, textarea, etc.)."
|
|
7907
8028
|
},
|
|
7908
8029
|
"mediaType": {
|
|
7909
8030
|
"type": "string",
|
|
7910
8031
|
"optional": true,
|
|
7911
8032
|
"description": "One of 'image', 'video', or 'audio' if the context menu was activated on one of these types of elements."
|
|
7912
8033
|
},
|
|
8034
|
+
"viewType": {
|
|
8035
|
+
"$ref": "extension.ViewType",
|
|
8036
|
+
"optional": true,
|
|
8037
|
+
"description": "The type of view where the menu is clicked. May be unset if the menu is not associated with a view."
|
|
8038
|
+
},
|
|
7913
8039
|
"linkText": {
|
|
7914
8040
|
"type": "string",
|
|
7915
8041
|
"optional": true,
|
|
@@ -7946,10 +8072,6 @@
|
|
|
7946
8072
|
"optional": true,
|
|
7947
8073
|
"description": "The text for the context selection, if any."
|
|
7948
8074
|
},
|
|
7949
|
-
"editable": {
|
|
7950
|
-
"type": "boolean",
|
|
7951
|
-
"description": "A flag indicating whether the element is editable (text input, textarea, etc.)."
|
|
7952
|
-
},
|
|
7953
8075
|
"wasChecked": {
|
|
7954
8076
|
"type": "boolean",
|
|
7955
8077
|
"optional": true,
|
|
@@ -8020,9 +8142,16 @@
|
|
|
8020
8142
|
"attachments": {
|
|
8021
8143
|
"type": "array",
|
|
8022
8144
|
"optional": true,
|
|
8023
|
-
"description": "The selected attachments of a message being composed. The <permission>
|
|
8145
|
+
"description": "The selected attachments. The <permission>compose</permission> permission is required to return attachments of a message being composed. The <permission>messagesRead</permission> permission is required to return attachments of displayed messages.",
|
|
8024
8146
|
"items": {
|
|
8025
|
-
"
|
|
8147
|
+
"choices": [
|
|
8148
|
+
{
|
|
8149
|
+
"$ref": "compose.ComposeAttachment"
|
|
8150
|
+
},
|
|
8151
|
+
{
|
|
8152
|
+
"$ref": "messages.MessageAttachment"
|
|
8153
|
+
}
|
|
8154
|
+
]
|
|
8026
8155
|
}
|
|
8027
8156
|
}
|
|
8028
8157
|
}
|
|
@@ -8114,7 +8243,7 @@
|
|
|
8114
8243
|
{
|
|
8115
8244
|
"name": "tab",
|
|
8116
8245
|
"$ref": "tabs.Tab",
|
|
8117
|
-
"description": "The details of the tab where the click took place. Note
|
|
8246
|
+
"description": "The details of the tab where the click took place. **Note:** this parameter only present for extensions."
|
|
8118
8247
|
}
|
|
8119
8248
|
]
|
|
8120
8249
|
},
|
|
@@ -8243,7 +8372,7 @@
|
|
|
8243
8372
|
{
|
|
8244
8373
|
"name": "tab",
|
|
8245
8374
|
"$ref": "tabs.Tab",
|
|
8246
|
-
"description": "The details of the tab where the click took place. Note
|
|
8375
|
+
"description": "The details of the tab where the click took place. **Note:** this parameter only present for extensions."
|
|
8247
8376
|
}
|
|
8248
8377
|
]
|
|
8249
8378
|
},
|
|
@@ -8257,7 +8386,7 @@
|
|
|
8257
8386
|
}
|
|
8258
8387
|
],
|
|
8259
8388
|
"optional": true,
|
|
8260
|
-
"description": "Note
|
|
8389
|
+
"description": "**Note:** You cannot change an item to be a child of one of its own descendants."
|
|
8261
8390
|
},
|
|
8262
8391
|
"documentUrlPatterns": {
|
|
8263
8392
|
"type": "array",
|
|
@@ -8596,7 +8725,7 @@
|
|
|
8596
8725
|
"items": {
|
|
8597
8726
|
"$ref": "ThemeIcons"
|
|
8598
8727
|
},
|
|
8599
|
-
"description": "Specifies dark and light icons to be used with themes. The ``light`` icon is used on dark backgrounds and vice versa. Note
|
|
8728
|
+
"description": "Specifies dark and light icons to be used with themes. The ``light`` icon is used on dark backgrounds and vice versa. **Note:** The default theme uses the ``default_icon`` for light backgrounds (if specified)."
|
|
8600
8729
|
},
|
|
8601
8730
|
"default_popup": {
|
|
8602
8731
|
"type": "string",
|
|
@@ -9104,7 +9233,7 @@
|
|
|
9104
9233
|
{
|
|
9105
9234
|
"name": "onClicked",
|
|
9106
9235
|
"type": "function",
|
|
9107
|
-
"description": "Fired when a messageDisplayAction icon is clicked.
|
|
9236
|
+
"description": "Fired when a messageDisplayAction icon is clicked. This event will not fire if the messageDisplayAction has a popup. This is a user input event handler. For asynchronous listeners some `restrictions <https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/User_actions>`__ apply.",
|
|
9108
9237
|
"parameters": [
|
|
9109
9238
|
{
|
|
9110
9239
|
"name": "tab",
|
|
@@ -11345,7 +11474,7 @@
|
|
|
11345
11474
|
{
|
|
11346
11475
|
"name": "onFocusChanged",
|
|
11347
11476
|
"type": "function",
|
|
11348
|
-
"description": "Fired when the currently focused window changes. Will be :ref:`windows.WINDOW_ID_NONE`) if all browser windows have lost focus. Note
|
|
11477
|
+
"description": "Fired when the currently focused window changes. Will be :ref:`windows.WINDOW_ID_NONE`) if all browser windows have lost focus. **Note:** On some Linux window managers, WINDOW_ID_NONE will always be sent immediately preceding a switch from one browser window to another.",
|
|
11349
11478
|
"filters": [
|
|
11350
11479
|
{
|
|
11351
11480
|
"name": "windowTypes",
|
|
@@ -5165,7 +5165,17 @@
|
|
|
5165
5165
|
"description": "The position of the tabs within their windows."
|
|
5166
5166
|
},
|
|
5167
5167
|
"cookieStoreId": {
|
|
5168
|
-
"
|
|
5168
|
+
"choices": [
|
|
5169
|
+
{
|
|
5170
|
+
"type": "array",
|
|
5171
|
+
"items": {
|
|
5172
|
+
"type": "string"
|
|
5173
|
+
}
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
"type": "string"
|
|
5177
|
+
}
|
|
5178
|
+
],
|
|
5169
5179
|
"optional": true,
|
|
5170
5180
|
"description": "The CookieStoreId used for the tab."
|
|
5171
5181
|
},
|
|
@@ -9033,6 +9043,22 @@
|
|
|
9033
9043
|
"$ref": "extensionTypes.RunAt",
|
|
9034
9044
|
"optional": true,
|
|
9035
9045
|
"description": "The soonest that the JavaScript or CSS will be injected into the tab. Defaults to \"document_idle\"."
|
|
9046
|
+
},
|
|
9047
|
+
"cookieStoreId": {
|
|
9048
|
+
"choices": [
|
|
9049
|
+
{
|
|
9050
|
+
"type": "array",
|
|
9051
|
+
"minItems": 1,
|
|
9052
|
+
"items": {
|
|
9053
|
+
"type": "string"
|
|
9054
|
+
}
|
|
9055
|
+
},
|
|
9056
|
+
{
|
|
9057
|
+
"type": "string"
|
|
9058
|
+
}
|
|
9059
|
+
],
|
|
9060
|
+
"optional": true,
|
|
9061
|
+
"description": "limit the set of matched tabs to those that belong to the given cookie store id"
|
|
9036
9062
|
}
|
|
9037
9063
|
}
|
|
9038
9064
|
},
|
|
@@ -11737,7 +11763,6 @@
|
|
|
11737
11763
|
"screenshots",
|
|
11738
11764
|
"seqstyle",
|
|
11739
11765
|
"stackwalk",
|
|
11740
|
-
"threads",
|
|
11741
11766
|
"jstracer",
|
|
11742
11767
|
"jsallocations",
|
|
11743
11768
|
"nostacksampling",
|
|
@@ -13147,6 +13172,30 @@
|
|
|
13147
13172
|
}
|
|
13148
13173
|
}
|
|
13149
13174
|
},
|
|
13175
|
+
{
|
|
13176
|
+
"id": "WebExtensionSitePermissionsManifest",
|
|
13177
|
+
"type": "object",
|
|
13178
|
+
"description": "Represents a WebExtension site permissions manifest.json file",
|
|
13179
|
+
"$import": "ManifestBase",
|
|
13180
|
+
"properties": {
|
|
13181
|
+
"site_permissions": {
|
|
13182
|
+
"type": "array",
|
|
13183
|
+
"minItems": 1,
|
|
13184
|
+
"items": {
|
|
13185
|
+
"$ref": "SitePermission"
|
|
13186
|
+
}
|
|
13187
|
+
},
|
|
13188
|
+
"install_origins": {
|
|
13189
|
+
"type": "array",
|
|
13190
|
+
"minItems": 1,
|
|
13191
|
+
"maxItems": 1,
|
|
13192
|
+
"items": {
|
|
13193
|
+
"type": "string",
|
|
13194
|
+
"format": "origin"
|
|
13195
|
+
}
|
|
13196
|
+
}
|
|
13197
|
+
}
|
|
13198
|
+
},
|
|
13150
13199
|
{
|
|
13151
13200
|
"id": "ThemeIcons",
|
|
13152
13201
|
"type": "object",
|
|
@@ -13246,6 +13295,18 @@
|
|
|
13246
13295
|
}
|
|
13247
13296
|
]
|
|
13248
13297
|
},
|
|
13298
|
+
{
|
|
13299
|
+
"id": "SitePermission",
|
|
13300
|
+
"choices": [
|
|
13301
|
+
{
|
|
13302
|
+
"type": "string",
|
|
13303
|
+
"enum": [
|
|
13304
|
+
"midi",
|
|
13305
|
+
"midi-sysex"
|
|
13306
|
+
]
|
|
13307
|
+
}
|
|
13308
|
+
]
|
|
13309
|
+
},
|
|
13249
13310
|
{
|
|
13250
13311
|
"id": "HttpURL",
|
|
13251
13312
|
"type": "string",
|