webext-schema 2.0.5 → 2.0.9
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 +10 -10
- package/schemas/beta/webext.json +176 -24
- package/schemas/central/webext.json +176 -24
- package/schemas/mail/mailext.json +376 -145
- package/schemas/release/webext.json +263 -50
|
@@ -331,6 +331,22 @@
|
|
|
331
331
|
"$ref": "extensionTypes.RunAt",
|
|
332
332
|
"optional": true,
|
|
333
333
|
"description": "The soonest that the JavaScript or CSS will be injected into the tab. Defaults to \"document_idle\"."
|
|
334
|
+
},
|
|
335
|
+
"cookieStoreId": {
|
|
336
|
+
"choices": [
|
|
337
|
+
{
|
|
338
|
+
"type": "array",
|
|
339
|
+
"minItems": 1,
|
|
340
|
+
"items": {
|
|
341
|
+
"type": "string"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"type": "string"
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"optional": true,
|
|
349
|
+
"description": "limit the set of matched tabs to those that belong to the given cookie store id"
|
|
334
350
|
}
|
|
335
351
|
}
|
|
336
352
|
},
|
|
@@ -2963,6 +2979,59 @@
|
|
|
2963
2979
|
}
|
|
2964
2980
|
]
|
|
2965
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
|
+
}
|
|
2966
3035
|
]
|
|
2967
3036
|
}
|
|
2968
3037
|
],
|
|
@@ -3243,7 +3312,7 @@
|
|
|
3243
3312
|
{
|
|
3244
3313
|
"name": "query",
|
|
3245
3314
|
"type": "string",
|
|
3246
|
-
"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.",
|
|
3247
3316
|
"optional": true
|
|
3248
3317
|
}
|
|
3249
3318
|
],
|
|
@@ -3936,7 +4005,7 @@
|
|
|
3936
4005
|
"items": {
|
|
3937
4006
|
"$ref": "ThemeIcons"
|
|
3938
4007
|
},
|
|
3939
|
-
"description": "Specifies icons to
|
|
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)."
|
|
3940
4009
|
},
|
|
3941
4010
|
"default_popup": {
|
|
3942
4011
|
"type": "string",
|
|
@@ -4448,7 +4517,7 @@
|
|
|
4448
4517
|
{
|
|
4449
4518
|
"name": "onClicked",
|
|
4450
4519
|
"type": "function",
|
|
4451
|
-
"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.",
|
|
4452
4521
|
"parameters": [
|
|
4453
4522
|
{
|
|
4454
4523
|
"name": "tab",
|
|
@@ -4676,7 +4745,7 @@
|
|
|
4676
4745
|
"properties": {
|
|
4677
4746
|
"browser_style": {
|
|
4678
4747
|
"type": "boolean",
|
|
4679
|
-
"description": "Enable browser styles. See the `MDN documentation <https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_styles>`__ for more information.",
|
|
4748
|
+
"description": "Enable browser styles in the ``management_url`` page. See the `MDN documentation <https://developer.mozilla.org/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_styles>`__ for more information.",
|
|
4680
4749
|
"optional": true,
|
|
4681
4750
|
"default": false
|
|
4682
4751
|
},
|
|
@@ -4690,6 +4759,12 @@
|
|
|
4690
4759
|
"File"
|
|
4691
4760
|
]
|
|
4692
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
|
+
},
|
|
4693
4768
|
"management_url": {
|
|
4694
4769
|
"type": "string",
|
|
4695
4770
|
"format": "relativeUrl",
|
|
@@ -4710,7 +4785,8 @@
|
|
|
4710
4785
|
"service_url": {
|
|
4711
4786
|
"type": "string",
|
|
4712
4787
|
"optional": true,
|
|
4713
|
-
"
|
|
4788
|
+
"deprecated": true,
|
|
4789
|
+
"description": "This property is no longer used. The ``service_url`` property of the :ref:`cloudFile.CloudFileTemplateInfo` object returned by the :ref:`cloudFile.onFileUpload` event can be used to add a ``Learn more about`` link to the footer of the cloud file attachment element."
|
|
4714
4790
|
}
|
|
4715
4791
|
},
|
|
4716
4792
|
"optional": true
|
|
@@ -4747,6 +4823,12 @@
|
|
|
4747
4823
|
"name": "tab",
|
|
4748
4824
|
"$ref": "tabs.Tab",
|
|
4749
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."
|
|
4750
4832
|
}
|
|
4751
4833
|
],
|
|
4752
4834
|
"returns": {
|
|
@@ -4757,6 +4839,18 @@
|
|
|
4757
4839
|
"description": "Set this to true if the file upload was aborted.",
|
|
4758
4840
|
"optional": true
|
|
4759
4841
|
},
|
|
4842
|
+
"error": {
|
|
4843
|
+
"choices": [
|
|
4844
|
+
{
|
|
4845
|
+
"type": "boolean"
|
|
4846
|
+
},
|
|
4847
|
+
{
|
|
4848
|
+
"type": "string"
|
|
4849
|
+
}
|
|
4850
|
+
],
|
|
4851
|
+
"description": "Report an error to the user. Set this to true for showing a generic error message, or set a specific error message.",
|
|
4852
|
+
"optional": true
|
|
4853
|
+
},
|
|
4760
4854
|
"url": {
|
|
4761
4855
|
"type": "string",
|
|
4762
4856
|
"description": "The URL where the uploaded file can be accessed.",
|
|
@@ -4764,7 +4858,7 @@
|
|
|
4764
4858
|
},
|
|
4765
4859
|
"templateInfo": {
|
|
4766
4860
|
"$ref": "CloudFileTemplateInfo",
|
|
4767
|
-
"description": "
|
|
4861
|
+
"description": "Additional file information used in the cloud file entry added to the message.",
|
|
4768
4862
|
"optional": true
|
|
4769
4863
|
}
|
|
4770
4864
|
}
|
|
@@ -4792,10 +4886,60 @@
|
|
|
4792
4886
|
}
|
|
4793
4887
|
]
|
|
4794
4888
|
},
|
|
4889
|
+
{
|
|
4890
|
+
"name": "onFileRename",
|
|
4891
|
+
"type": "function",
|
|
4892
|
+
"description": "Fired when a previously uploaded file should be renamed.",
|
|
4893
|
+
"parameters": [
|
|
4894
|
+
{
|
|
4895
|
+
"name": "account",
|
|
4896
|
+
"$ref": "CloudFileAccount",
|
|
4897
|
+
"description": "The account used for the file upload."
|
|
4898
|
+
},
|
|
4899
|
+
{
|
|
4900
|
+
"type": "integer",
|
|
4901
|
+
"name": "fileId",
|
|
4902
|
+
"minimum": 1,
|
|
4903
|
+
"description": "An identifier for the file which should be renamed."
|
|
4904
|
+
},
|
|
4905
|
+
{
|
|
4906
|
+
"type": "string",
|
|
4907
|
+
"name": "newName",
|
|
4908
|
+
"description": "The new name of the file."
|
|
4909
|
+
},
|
|
4910
|
+
{
|
|
4911
|
+
"name": "tab",
|
|
4912
|
+
"$ref": "tabs.Tab",
|
|
4913
|
+
"description": "The tab where the rename was initiated. Currently only available for the message composer."
|
|
4914
|
+
}
|
|
4915
|
+
],
|
|
4916
|
+
"returns": {
|
|
4917
|
+
"type": "object",
|
|
4918
|
+
"properties": {
|
|
4919
|
+
"error": {
|
|
4920
|
+
"choices": [
|
|
4921
|
+
{
|
|
4922
|
+
"type": "boolean"
|
|
4923
|
+
},
|
|
4924
|
+
{
|
|
4925
|
+
"type": "string"
|
|
4926
|
+
}
|
|
4927
|
+
],
|
|
4928
|
+
"description": "Report an error to the user. Set this to true for showing a generic error message, or set a specific error message.",
|
|
4929
|
+
"optional": true
|
|
4930
|
+
},
|
|
4931
|
+
"url": {
|
|
4932
|
+
"type": "string",
|
|
4933
|
+
"description": "The URL where the renamed file can be accessed.",
|
|
4934
|
+
"optional": true
|
|
4935
|
+
}
|
|
4936
|
+
}
|
|
4937
|
+
}
|
|
4938
|
+
},
|
|
4795
4939
|
{
|
|
4796
4940
|
"name": "onFileDeleted",
|
|
4797
4941
|
"type": "function",
|
|
4798
|
-
"description": "Fired when a
|
|
4942
|
+
"description": "Fired when a previously uploaded file should be deleted.",
|
|
4799
4943
|
"parameters": [
|
|
4800
4944
|
{
|
|
4801
4945
|
"name": "account",
|
|
@@ -4886,7 +5030,7 @@
|
|
|
4886
5030
|
{
|
|
4887
5031
|
"id": "CloudFileTemplateInfo",
|
|
4888
5032
|
"type": "object",
|
|
4889
|
-
"description": "
|
|
5033
|
+
"description": "Defines information to be used in the cloud file entry added to the message.",
|
|
4890
5034
|
"properties": {
|
|
4891
5035
|
"service_icon": {
|
|
4892
5036
|
"type": "string",
|
|
@@ -4901,7 +5045,34 @@
|
|
|
4901
5045
|
"service_url": {
|
|
4902
5046
|
"type": "string",
|
|
4903
5047
|
"optional": true,
|
|
4904
|
-
"description": "
|
|
5048
|
+
"description": "A URL pointing to a web page of the used cloud file service. Will be used in a ``Learn more about`` link in the footer of the cloud file attachment element."
|
|
5049
|
+
},
|
|
5050
|
+
"download_password_protected": {
|
|
5051
|
+
"type": "boolean",
|
|
5052
|
+
"optional": true,
|
|
5053
|
+
"description": "If set to true, the cloud file entry for this upload will include a hint, that the download link is password protected."
|
|
5054
|
+
},
|
|
5055
|
+
"download_limit": {
|
|
5056
|
+
"type": "integer",
|
|
5057
|
+
"optional": true,
|
|
5058
|
+
"description": "If set, the cloud file entry for this upload will include a hint, that the file has a download limit."
|
|
5059
|
+
},
|
|
5060
|
+
"download_expiry_date": {
|
|
5061
|
+
"type": "object",
|
|
5062
|
+
"optional": true,
|
|
5063
|
+
"description": "If set, the cloud file entry for this upload will include a hint, that the link will only be available for a limited time.",
|
|
5064
|
+
"properties": {
|
|
5065
|
+
"timestamp": {
|
|
5066
|
+
"type": "integer",
|
|
5067
|
+
"description": "The expiry date of the link as the number of milliseconds since the UNIX epoch."
|
|
5068
|
+
},
|
|
5069
|
+
"format": {
|
|
5070
|
+
"optional": true,
|
|
5071
|
+
"description": "A format options object as used by `Intl.DateTimeFormat <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat>`__. Defaults to: <literalinclude>includes/cloudFile/defaultDateFormat.js<lang>JavaScript</lang></literalinclude>",
|
|
5072
|
+
"type": "object",
|
|
5073
|
+
"additionalProperties": true
|
|
5074
|
+
}
|
|
5075
|
+
}
|
|
4905
5076
|
}
|
|
4906
5077
|
}
|
|
4907
5078
|
},
|
|
@@ -4936,6 +5107,37 @@
|
|
|
4936
5107
|
]
|
|
4937
5108
|
}
|
|
4938
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
|
+
}
|
|
4939
5141
|
}
|
|
4940
5142
|
],
|
|
4941
5143
|
"functions": [
|
|
@@ -5141,7 +5343,7 @@
|
|
|
5141
5343
|
},
|
|
5142
5344
|
"from": {
|
|
5143
5345
|
"$ref": "ComposeRecipient",
|
|
5144
|
-
"description": "*Caution*: Setting a value for
|
|
5346
|
+
"description": "*Caution*: Setting a value for ``from`` does not change the used identity, it overrides the FROM header. Many email servers do not accept emails where the FROM header does not match the sender identity. Must be set to exactly one valid email address.",
|
|
5145
5347
|
"optional": true
|
|
5146
5348
|
},
|
|
5147
5349
|
"to": {
|
|
@@ -5203,34 +5405,51 @@
|
|
|
5203
5405
|
},
|
|
5204
5406
|
"body": {
|
|
5205
5407
|
"type": "string",
|
|
5408
|
+
"description": "The HTML content of the message.",
|
|
5206
5409
|
"optional": true
|
|
5207
5410
|
},
|
|
5208
5411
|
"plainTextBody": {
|
|
5209
5412
|
"type": "string",
|
|
5413
|
+
"description": "The plain text content of the message.",
|
|
5210
5414
|
"optional": true
|
|
5211
5415
|
},
|
|
5212
5416
|
"isPlainText": {
|
|
5213
5417
|
"type": "boolean",
|
|
5418
|
+
"description": "Whether the message is an HTML message or a plain text message.",
|
|
5214
5419
|
"optional": true
|
|
5215
5420
|
},
|
|
5216
5421
|
"attachments": {
|
|
5217
5422
|
"type": "array",
|
|
5218
5423
|
"items": {
|
|
5219
|
-
"
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
"type": "string",
|
|
5223
|
-
"description": "The name, as displayed to the user, of this attachment. If not specified, the name of the ``file`` object is used.",
|
|
5224
|
-
"optional": true
|
|
5424
|
+
"choices": [
|
|
5425
|
+
{
|
|
5426
|
+
"$ref": "FileAttachment"
|
|
5225
5427
|
},
|
|
5226
|
-
|
|
5227
|
-
"
|
|
5228
|
-
"isInstanceOf": "File",
|
|
5229
|
-
"additionalProperties": true
|
|
5428
|
+
{
|
|
5429
|
+
"$ref": "ComposeAttachment"
|
|
5230
5430
|
}
|
|
5231
|
-
|
|
5431
|
+
]
|
|
5232
5432
|
},
|
|
5233
|
-
"description": "
|
|
5433
|
+
"description": "Only used in the begin* functions. Attachments to add to the message.",
|
|
5434
|
+
"optional": true
|
|
5435
|
+
}
|
|
5436
|
+
}
|
|
5437
|
+
},
|
|
5438
|
+
{
|
|
5439
|
+
"id": "FileAttachment",
|
|
5440
|
+
"type": "object",
|
|
5441
|
+
"description": "Object used to add, update or rename an attachment in a message being composed.",
|
|
5442
|
+
"properties": {
|
|
5443
|
+
"file": {
|
|
5444
|
+
"type": "object",
|
|
5445
|
+
"isInstanceOf": "File",
|
|
5446
|
+
"additionalProperties": true,
|
|
5447
|
+
"description": "The new content for the attachment.",
|
|
5448
|
+
"optional": true
|
|
5449
|
+
},
|
|
5450
|
+
"name": {
|
|
5451
|
+
"type": "string",
|
|
5452
|
+
"description": "The new name for the attachment, as displayed to the user. If not specified, the name of the provided ``file`` object is used.",
|
|
5234
5453
|
"optional": true
|
|
5235
5454
|
}
|
|
5236
5455
|
}
|
|
@@ -5246,22 +5465,15 @@
|
|
|
5246
5465
|
},
|
|
5247
5466
|
"name": {
|
|
5248
5467
|
"type": "string",
|
|
5249
|
-
"
|
|
5468
|
+
"optional": true,
|
|
5469
|
+
"description": "The name of this attachment, as displayed to the user."
|
|
5250
5470
|
},
|
|
5251
5471
|
"size": {
|
|
5252
5472
|
"type": "integer",
|
|
5253
|
-
"
|
|
5254
|
-
|
|
5255
|
-
},
|
|
5256
|
-
"functions": [
|
|
5257
|
-
{
|
|
5258
|
-
"name": "getFile",
|
|
5259
|
-
"type": "function",
|
|
5260
|
-
"description": "Retrieves the contents of the attachment as a DOM ``File`` object.",
|
|
5261
|
-
"async": true,
|
|
5262
|
-
"parameters": []
|
|
5473
|
+
"optional": true,
|
|
5474
|
+
"description": "The size in bytes of this attachment. Read-only."
|
|
5263
5475
|
}
|
|
5264
|
-
|
|
5476
|
+
}
|
|
5265
5477
|
}
|
|
5266
5478
|
],
|
|
5267
5479
|
"events": [
|
|
@@ -5280,7 +5492,7 @@
|
|
|
5280
5492
|
{
|
|
5281
5493
|
"name": "details",
|
|
5282
5494
|
"$ref": "ComposeDetails",
|
|
5283
|
-
"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."
|
|
5284
5496
|
}
|
|
5285
5497
|
],
|
|
5286
5498
|
"returns": {
|
|
@@ -5294,7 +5506,7 @@
|
|
|
5294
5506
|
"details": {
|
|
5295
5507
|
"$ref": "ComposeDetails",
|
|
5296
5508
|
"optional": true,
|
|
5297
|
-
"description": "Updates the compose window.
|
|
5509
|
+
"description": "Updates the compose window. This is functionally the same as calling the :ref:`compose.setComposeDetails` function."
|
|
5298
5510
|
}
|
|
5299
5511
|
}
|
|
5300
5512
|
}
|
|
@@ -5373,7 +5585,7 @@
|
|
|
5373
5585
|
{
|
|
5374
5586
|
"name": "beginNew",
|
|
5375
5587
|
"type": "function",
|
|
5376
|
-
"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.",
|
|
5377
5589
|
"async": "callback",
|
|
5378
5590
|
"parameters": [
|
|
5379
5591
|
{
|
|
@@ -5404,7 +5616,7 @@
|
|
|
5404
5616
|
{
|
|
5405
5617
|
"name": "beginReply",
|
|
5406
5618
|
"type": "function",
|
|
5407
|
-
"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.",
|
|
5408
5620
|
"async": "callback",
|
|
5409
5621
|
"parameters": [
|
|
5410
5622
|
{
|
|
@@ -5444,7 +5656,7 @@
|
|
|
5444
5656
|
{
|
|
5445
5657
|
"name": "beginForward",
|
|
5446
5658
|
"type": "function",
|
|
5447
|
-
"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.",
|
|
5448
5660
|
"async": "callback",
|
|
5449
5661
|
"parameters": [
|
|
5450
5662
|
{
|
|
@@ -5510,7 +5722,7 @@
|
|
|
5510
5722
|
"name": "setComposeDetails",
|
|
5511
5723
|
"type": "function",
|
|
5512
5724
|
"async": true,
|
|
5513
|
-
"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.",
|
|
5514
5726
|
"permissions": [
|
|
5515
5727
|
"compose"
|
|
5516
5728
|
],
|
|
@@ -5522,8 +5734,7 @@
|
|
|
5522
5734
|
},
|
|
5523
5735
|
{
|
|
5524
5736
|
"name": "details",
|
|
5525
|
-
"$ref": "ComposeDetails"
|
|
5526
|
-
"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"
|
|
5527
5738
|
}
|
|
5528
5739
|
]
|
|
5529
5740
|
},
|
|
@@ -5546,17 +5757,35 @@
|
|
|
5546
5757
|
"optional": true,
|
|
5547
5758
|
"parameters": [
|
|
5548
5759
|
{
|
|
5549
|
-
"
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5760
|
+
"type": "array",
|
|
5761
|
+
"items": {
|
|
5762
|
+
"$ref": "ComposeAttachment"
|
|
5763
|
+
}
|
|
5764
|
+
}
|
|
5765
|
+
]
|
|
5766
|
+
}
|
|
5767
|
+
]
|
|
5768
|
+
},
|
|
5769
|
+
{
|
|
5770
|
+
"name": "getAttachmentFile",
|
|
5771
|
+
"type": "function",
|
|
5772
|
+
"description": "Gets the content of a :ref:`compose.ComposeAttachment` as a DOM <code>File</code> object.",
|
|
5773
|
+
"async": "callback",
|
|
5774
|
+
"parameters": [
|
|
5775
|
+
{
|
|
5776
|
+
"name": "id",
|
|
5777
|
+
"type": "integer",
|
|
5778
|
+
"description": "The unique identifier for the attachment."
|
|
5779
|
+
},
|
|
5780
|
+
{
|
|
5781
|
+
"type": "function",
|
|
5782
|
+
"name": "callback",
|
|
5783
|
+
"optional": true,
|
|
5784
|
+
"parameters": [
|
|
5785
|
+
{
|
|
5786
|
+
"type": "object",
|
|
5787
|
+
"isInstanceOf": "File",
|
|
5788
|
+
"additionalProperties": true
|
|
5560
5789
|
}
|
|
5561
5790
|
]
|
|
5562
5791
|
}
|
|
@@ -5576,20 +5805,15 @@
|
|
|
5576
5805
|
"type": "integer"
|
|
5577
5806
|
},
|
|
5578
5807
|
{
|
|
5579
|
-
"name": "
|
|
5580
|
-
"
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
"type": "string",
|
|
5584
|
-
"description": "The name, as displayed to the user, of this attachment. If not specified, the name of the ``file`` object is used.",
|
|
5585
|
-
"optional": true
|
|
5808
|
+
"name": "attachment",
|
|
5809
|
+
"choices": [
|
|
5810
|
+
{
|
|
5811
|
+
"$ref": "FileAttachment"
|
|
5586
5812
|
},
|
|
5587
|
-
|
|
5588
|
-
"
|
|
5589
|
-
"isInstanceOf": "File",
|
|
5590
|
-
"additionalProperties": true
|
|
5813
|
+
{
|
|
5814
|
+
"$ref": "ComposeAttachment"
|
|
5591
5815
|
}
|
|
5592
|
-
|
|
5816
|
+
]
|
|
5593
5817
|
},
|
|
5594
5818
|
{
|
|
5595
5819
|
"type": "function",
|
|
@@ -5597,14 +5821,7 @@
|
|
|
5597
5821
|
"optional": true,
|
|
5598
5822
|
"parameters": [
|
|
5599
5823
|
{
|
|
5600
|
-
"
|
|
5601
|
-
{
|
|
5602
|
-
"$ref": "ComposeAttachment"
|
|
5603
|
-
},
|
|
5604
|
-
{
|
|
5605
|
-
"type": "any"
|
|
5606
|
-
}
|
|
5607
|
-
]
|
|
5824
|
+
"$ref": "ComposeAttachment"
|
|
5608
5825
|
}
|
|
5609
5826
|
]
|
|
5610
5827
|
}
|
|
@@ -5613,7 +5830,7 @@
|
|
|
5613
5830
|
{
|
|
5614
5831
|
"name": "updateAttachment",
|
|
5615
5832
|
"type": "function",
|
|
5616
|
-
"description": "
|
|
5833
|
+
"description": "Updates the name and/or the content of an attachment in the message being composed in the specified tab. If the specified attachment is a cloud file attachment and the associated provider failed to update the attachment, the function will throw an ``ExtensionError``.",
|
|
5617
5834
|
"permissions": [
|
|
5618
5835
|
"compose"
|
|
5619
5836
|
],
|
|
@@ -5628,21 +5845,8 @@
|
|
|
5628
5845
|
"type": "integer"
|
|
5629
5846
|
},
|
|
5630
5847
|
{
|
|
5631
|
-
"name": "
|
|
5632
|
-
"
|
|
5633
|
-
"properties": {
|
|
5634
|
-
"name": {
|
|
5635
|
-
"type": "string",
|
|
5636
|
-
"description": "The name, as displayed to the user, of this attachment. If not specified, the name of the ``file`` object is used.",
|
|
5637
|
-
"optional": true
|
|
5638
|
-
},
|
|
5639
|
-
"file": {
|
|
5640
|
-
"type": "object",
|
|
5641
|
-
"isInstanceOf": "File",
|
|
5642
|
-
"additionalProperties": true,
|
|
5643
|
-
"optional": true
|
|
5644
|
-
}
|
|
5645
|
-
}
|
|
5848
|
+
"name": "attachment",
|
|
5849
|
+
"$ref": "FileAttachment"
|
|
5646
5850
|
},
|
|
5647
5851
|
{
|
|
5648
5852
|
"type": "function",
|
|
@@ -5650,14 +5854,7 @@
|
|
|
5650
5854
|
"optional": true,
|
|
5651
5855
|
"parameters": [
|
|
5652
5856
|
{
|
|
5653
|
-
"
|
|
5654
|
-
{
|
|
5655
|
-
"$ref": "ComposeAttachment"
|
|
5656
|
-
},
|
|
5657
|
-
{
|
|
5658
|
-
"type": "any"
|
|
5659
|
-
}
|
|
5660
|
-
]
|
|
5857
|
+
"$ref": "ComposeAttachment"
|
|
5661
5858
|
}
|
|
5662
5859
|
]
|
|
5663
5860
|
}
|
|
@@ -5787,7 +5984,7 @@
|
|
|
5787
5984
|
"items": {
|
|
5788
5985
|
"$ref": "ThemeIcons"
|
|
5789
5986
|
},
|
|
5790
|
-
"description": "Specifies icons to
|
|
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)."
|
|
5791
5988
|
},
|
|
5792
5989
|
"default_popup": {
|
|
5793
5990
|
"type": "string",
|
|
@@ -6299,7 +6496,7 @@
|
|
|
6299
6496
|
{
|
|
6300
6497
|
"name": "onClicked",
|
|
6301
6498
|
"type": "function",
|
|
6302
|
-
"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.",
|
|
6303
6500
|
"parameters": [
|
|
6304
6501
|
{
|
|
6305
6502
|
"name": "tab",
|
|
@@ -7180,7 +7377,7 @@
|
|
|
7180
7377
|
},
|
|
7181
7378
|
"sortType": {
|
|
7182
7379
|
"type": "string",
|
|
7183
|
-
"description": "Note
|
|
7380
|
+
"description": "**Note:** ``sortType`` and ``sortOrder`` depend on each other, so both should be present, or neither.",
|
|
7184
7381
|
"optional": true,
|
|
7185
7382
|
"enum": [
|
|
7186
7383
|
"none",
|
|
@@ -7207,7 +7404,7 @@
|
|
|
7207
7404
|
},
|
|
7208
7405
|
"sortOrder": {
|
|
7209
7406
|
"type": "string",
|
|
7210
|
-
"description": "Note
|
|
7407
|
+
"description": "**Note:** ``sortType`` and ``sortOrder`` depend on each other, so both should be present, or neither.",
|
|
7211
7408
|
"optional": true,
|
|
7212
7409
|
"enum": [
|
|
7213
7410
|
"none",
|
|
@@ -7655,6 +7852,8 @@
|
|
|
7655
7852
|
"message_list",
|
|
7656
7853
|
"folder_pane",
|
|
7657
7854
|
"compose_attachments",
|
|
7855
|
+
"message_attachments",
|
|
7856
|
+
"all_message_attachments",
|
|
7658
7857
|
"tools_menu"
|
|
7659
7858
|
],
|
|
7660
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."
|
|
@@ -7673,7 +7872,7 @@
|
|
|
7673
7872
|
{
|
|
7674
7873
|
"id": "OnShowData",
|
|
7675
7874
|
"type": "object",
|
|
7676
|
-
"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.",
|
|
7677
7876
|
"properties": {
|
|
7678
7877
|
"menuIds": {
|
|
7679
7878
|
"description": "A list of IDs of the menu items that were shown.",
|
|
@@ -7696,76 +7895,101 @@
|
|
|
7696
7895
|
"$ref": "ContextType"
|
|
7697
7896
|
}
|
|
7698
7897
|
},
|
|
7699
|
-
"viewType": {
|
|
7700
|
-
"$ref": "extension.ViewType",
|
|
7701
|
-
"optional": true
|
|
7702
|
-
},
|
|
7703
7898
|
"editable": {
|
|
7704
|
-
"type": "boolean"
|
|
7899
|
+
"type": "boolean",
|
|
7900
|
+
"description": "A flag indicating whether the element is editable (text input, textarea, etc.)."
|
|
7705
7901
|
},
|
|
7706
7902
|
"mediaType": {
|
|
7707
7903
|
"type": "string",
|
|
7708
|
-
"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."
|
|
7709
7906
|
},
|
|
7710
|
-
"
|
|
7711
|
-
"
|
|
7712
|
-
"
|
|
7713
|
-
"
|
|
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."
|
|
7714
7911
|
},
|
|
7715
7912
|
"linkText": {
|
|
7716
7913
|
"type": "string",
|
|
7717
|
-
"
|
|
7718
|
-
"
|
|
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."
|
|
7719
7921
|
},
|
|
7720
7922
|
"srcUrl": {
|
|
7721
7923
|
"type": "string",
|
|
7722
|
-
"description": "Host permission is required.",
|
|
7924
|
+
"description": "Will be present for elements with a 'src' URL. **Note:** Host permission is required.",
|
|
7723
7925
|
"optional": true
|
|
7724
7926
|
},
|
|
7725
7927
|
"pageUrl": {
|
|
7726
7928
|
"type": "string",
|
|
7727
|
-
"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.",
|
|
7728
7930
|
"optional": true
|
|
7729
7931
|
},
|
|
7730
7932
|
"frameUrl": {
|
|
7731
7933
|
"type": "string",
|
|
7732
|
-
"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.",
|
|
7733
7935
|
"optional": true
|
|
7734
7936
|
},
|
|
7735
7937
|
"selectionText": {
|
|
7736
7938
|
"type": "string",
|
|
7737
|
-
"description": "Host permission is required.",
|
|
7939
|
+
"description": "The text for the context selection, if any. **Note:** Host permission is required.",
|
|
7738
7940
|
"optional": true
|
|
7739
7941
|
},
|
|
7740
7942
|
"targetElementId": {
|
|
7741
7943
|
"type": "integer",
|
|
7742
|
-
"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."
|
|
7743
7946
|
},
|
|
7744
7947
|
"fieldId": {
|
|
7745
7948
|
"type": "string",
|
|
7746
|
-
"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
|
+
]
|
|
7747
7959
|
},
|
|
7748
7960
|
"selectedMessages": {
|
|
7749
7961
|
"$ref": "messages.MessageList",
|
|
7750
|
-
"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."
|
|
7751
7964
|
},
|
|
7752
7965
|
"displayedFolder": {
|
|
7753
7966
|
"$ref": "folders.MailFolder",
|
|
7754
|
-
"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."
|
|
7755
7969
|
},
|
|
7756
7970
|
"selectedFolder": {
|
|
7757
7971
|
"$ref": "folders.MailFolder",
|
|
7758
|
-
"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."
|
|
7759
7974
|
},
|
|
7760
7975
|
"selectedAccount": {
|
|
7761
7976
|
"$ref": "accounts.MailAccount",
|
|
7762
|
-
"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."
|
|
7763
7979
|
},
|
|
7764
7980
|
"attachments": {
|
|
7765
7981
|
"type": "array",
|
|
7766
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.",
|
|
7767
7984
|
"items": {
|
|
7768
|
-
"
|
|
7985
|
+
"choices": [
|
|
7986
|
+
{
|
|
7987
|
+
"$ref": "compose.ComposeAttachment"
|
|
7988
|
+
},
|
|
7989
|
+
{
|
|
7990
|
+
"$ref": "messages.MessageAttachment"
|
|
7991
|
+
}
|
|
7992
|
+
]
|
|
7769
7993
|
}
|
|
7770
7994
|
}
|
|
7771
7995
|
}
|
|
@@ -7798,16 +8022,20 @@
|
|
|
7798
8022
|
"optional": true,
|
|
7799
8023
|
"description": "The parent ID, if any, for the item clicked."
|
|
7800
8024
|
},
|
|
7801
|
-
"
|
|
7802
|
-
"
|
|
7803
|
-
"
|
|
7804
|
-
"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.)."
|
|
7805
8028
|
},
|
|
7806
8029
|
"mediaType": {
|
|
7807
8030
|
"type": "string",
|
|
7808
8031
|
"optional": true,
|
|
7809
8032
|
"description": "One of 'image', 'video', or 'audio' if the context menu was activated on one of these types of elements."
|
|
7810
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
|
+
},
|
|
7811
8039
|
"linkText": {
|
|
7812
8040
|
"type": "string",
|
|
7813
8041
|
"optional": true,
|
|
@@ -7844,10 +8072,6 @@
|
|
|
7844
8072
|
"optional": true,
|
|
7845
8073
|
"description": "The text for the context selection, if any."
|
|
7846
8074
|
},
|
|
7847
|
-
"editable": {
|
|
7848
|
-
"type": "boolean",
|
|
7849
|
-
"description": "A flag indicating whether the element is editable (text input, textarea, etc.)."
|
|
7850
|
-
},
|
|
7851
8075
|
"wasChecked": {
|
|
7852
8076
|
"type": "boolean",
|
|
7853
8077
|
"optional": true,
|
|
@@ -7918,9 +8142,16 @@
|
|
|
7918
8142
|
"attachments": {
|
|
7919
8143
|
"type": "array",
|
|
7920
8144
|
"optional": true,
|
|
7921
|
-
"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.",
|
|
7922
8146
|
"items": {
|
|
7923
|
-
"
|
|
8147
|
+
"choices": [
|
|
8148
|
+
{
|
|
8149
|
+
"$ref": "compose.ComposeAttachment"
|
|
8150
|
+
},
|
|
8151
|
+
{
|
|
8152
|
+
"$ref": "messages.MessageAttachment"
|
|
8153
|
+
}
|
|
8154
|
+
]
|
|
7924
8155
|
}
|
|
7925
8156
|
}
|
|
7926
8157
|
}
|
|
@@ -8012,7 +8243,7 @@
|
|
|
8012
8243
|
{
|
|
8013
8244
|
"name": "tab",
|
|
8014
8245
|
"$ref": "tabs.Tab",
|
|
8015
|
-
"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."
|
|
8016
8247
|
}
|
|
8017
8248
|
]
|
|
8018
8249
|
},
|
|
@@ -8052,7 +8283,7 @@
|
|
|
8052
8283
|
"command": {
|
|
8053
8284
|
"type": "string",
|
|
8054
8285
|
"optional": true,
|
|
8055
|
-
"description": "Specifies a command to issue for the context click. Currently supports internal
|
|
8286
|
+
"description": "Specifies a command to issue for the context click. Currently supports internal commands ``_execute_browser_action``, ``_execute_compose_action`` and ``_execute_message_display_action``."
|
|
8056
8287
|
}
|
|
8057
8288
|
}
|
|
8058
8289
|
},
|
|
@@ -8141,7 +8372,7 @@
|
|
|
8141
8372
|
{
|
|
8142
8373
|
"name": "tab",
|
|
8143
8374
|
"$ref": "tabs.Tab",
|
|
8144
|
-
"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."
|
|
8145
8376
|
}
|
|
8146
8377
|
]
|
|
8147
8378
|
},
|
|
@@ -8155,7 +8386,7 @@
|
|
|
8155
8386
|
}
|
|
8156
8387
|
],
|
|
8157
8388
|
"optional": true,
|
|
8158
|
-
"description": "Note
|
|
8389
|
+
"description": "**Note:** You cannot change an item to be a child of one of its own descendants."
|
|
8159
8390
|
},
|
|
8160
8391
|
"documentUrlPatterns": {
|
|
8161
8392
|
"type": "array",
|
|
@@ -8494,7 +8725,7 @@
|
|
|
8494
8725
|
"items": {
|
|
8495
8726
|
"$ref": "ThemeIcons"
|
|
8496
8727
|
},
|
|
8497
|
-
"description": "Specifies icons to
|
|
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)."
|
|
8498
8729
|
},
|
|
8499
8730
|
"default_popup": {
|
|
8500
8731
|
"type": "string",
|
|
@@ -9002,7 +9233,7 @@
|
|
|
9002
9233
|
{
|
|
9003
9234
|
"name": "onClicked",
|
|
9004
9235
|
"type": "function",
|
|
9005
|
-
"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.",
|
|
9006
9237
|
"parameters": [
|
|
9007
9238
|
{
|
|
9008
9239
|
"name": "tab",
|
|
@@ -9259,7 +9490,7 @@
|
|
|
9259
9490
|
}
|
|
9260
9491
|
},
|
|
9261
9492
|
{
|
|
9262
|
-
"id": "
|
|
9493
|
+
"id": "MessageAttachment",
|
|
9263
9494
|
"type": "object",
|
|
9264
9495
|
"description": "Represents an attachment in a message.",
|
|
9265
9496
|
"properties": {
|
|
@@ -9499,7 +9730,7 @@
|
|
|
9499
9730
|
{
|
|
9500
9731
|
"type": "array",
|
|
9501
9732
|
"items": {
|
|
9502
|
-
"$ref": "
|
|
9733
|
+
"$ref": "MessageAttachment"
|
|
9503
9734
|
}
|
|
9504
9735
|
}
|
|
9505
9736
|
]
|
|
@@ -9509,7 +9740,7 @@
|
|
|
9509
9740
|
{
|
|
9510
9741
|
"name": "getAttachmentFile",
|
|
9511
9742
|
"type": "function",
|
|
9512
|
-
"description": "Gets the content of
|
|
9743
|
+
"description": "Gets the content of a :ref:`messages.MessageAttachment` as a DOM <code>File</code> object.",
|
|
9513
9744
|
"async": "callback",
|
|
9514
9745
|
"parameters": [
|
|
9515
9746
|
{
|
|
@@ -11243,7 +11474,7 @@
|
|
|
11243
11474
|
{
|
|
11244
11475
|
"name": "onFocusChanged",
|
|
11245
11476
|
"type": "function",
|
|
11246
|
-
"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.",
|
|
11247
11478
|
"filters": [
|
|
11248
11479
|
{
|
|
11249
11480
|
"name": "windowTypes",
|