webext-schema 5.2.9 → 5.3.0
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/browser.js +38 -0
- package/package.json +10 -10
- package/schemas/central/webext.json +16 -3
- package/schemas/mail/mailext.json +258 -118
- package/schemas/release/webext.json +48 -301
- package/types/modules/browser.d.ts +1 -0
package/modules/browser.js
CHANGED
|
@@ -989,6 +989,44 @@ export const warmupTab = async tabId => {
|
|
|
989
989
|
}
|
|
990
990
|
};
|
|
991
991
|
|
|
992
|
+
/**
|
|
993
|
+
* capture visible tab
|
|
994
|
+
* @param {number} windowId - window ID
|
|
995
|
+
* @param {object} opt - options
|
|
996
|
+
* @returns {Promise.<?string>} - data URL
|
|
997
|
+
*/
|
|
998
|
+
export const captureVisibleTab = async (windowId, opt) => {
|
|
999
|
+
const info = await runtime.getBrowserInfo();
|
|
1000
|
+
let isGranted;
|
|
1001
|
+
if (info.vender === 'Mozilla') {
|
|
1002
|
+
const browserVersion = parseFloat(info.version);
|
|
1003
|
+
isGranted = (browserVersion >= 126 && await isPermissionGranted({
|
|
1004
|
+
permissions: ['activeTab']
|
|
1005
|
+
})) || await isPermissionGranted({
|
|
1006
|
+
origins: ['<all_urls>']
|
|
1007
|
+
});
|
|
1008
|
+
} else {
|
|
1009
|
+
isGranted = await isPermissionGranted({
|
|
1010
|
+
permissions: ['activeTab']
|
|
1011
|
+
}) || await isPermissionGranted({
|
|
1012
|
+
origins: ['<all_urls>']
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
let url;
|
|
1016
|
+
if (isGranted) {
|
|
1017
|
+
if (!Number.isInteger(windowId)) {
|
|
1018
|
+
windowId = windows.WINDOW_ID_CURRENT;
|
|
1019
|
+
}
|
|
1020
|
+
if (!opt) {
|
|
1021
|
+
opt = {
|
|
1022
|
+
format: 'png'
|
|
1023
|
+
};
|
|
1024
|
+
}
|
|
1025
|
+
url = await tabs.captureVisibleTab(windowId, opt);
|
|
1026
|
+
}
|
|
1027
|
+
return url ?? null;
|
|
1028
|
+
};
|
|
1029
|
+
|
|
992
1030
|
/**
|
|
993
1031
|
* is tab
|
|
994
1032
|
* @param {*} tabId - tab ID
|
package/package.json
CHANGED
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"sinon": "^17.0.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@types/firefox-webext-browser": "^120.0.
|
|
24
|
-
"@types/node": "^20.
|
|
23
|
+
"@types/firefox-webext-browser": "^120.0.3",
|
|
24
|
+
"@types/node": "^20.12.7",
|
|
25
25
|
"@types/sinon": "^17.0.3",
|
|
26
26
|
"c8": "^9.1.0",
|
|
27
27
|
"chai": "^5.1.0",
|
|
28
|
-
"eslint": "^8.
|
|
28
|
+
"eslint": "^8.57.0",
|
|
29
29
|
"eslint-config-standard": "^17.1.0",
|
|
30
30
|
"eslint-plugin-import": "^2.29.1",
|
|
31
|
-
"eslint-plugin-jsdoc": "^48.
|
|
32
|
-
"eslint-plugin-regexp": "^2.
|
|
33
|
-
"eslint-plugin-unicorn": "^
|
|
34
|
-
"mocha": "^10.
|
|
31
|
+
"eslint-plugin-jsdoc": "^48.2.3",
|
|
32
|
+
"eslint-plugin-regexp": "^2.5.0",
|
|
33
|
+
"eslint-plugin-unicorn": "^52.0.0",
|
|
34
|
+
"mocha": "^10.4.0",
|
|
35
35
|
"npm-run-all": "^4.1.5",
|
|
36
|
-
"typescript": "^5.
|
|
37
|
-
"undici": "^6.
|
|
36
|
+
"typescript": "^5.4.5",
|
|
37
|
+
"undici": "^6.13.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "npm run tsc && npm run lint && npm run test",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"update-mail": "node index update --channel=mail -i",
|
|
55
55
|
"update-release": "node index update --channel=release -i"
|
|
56
56
|
},
|
|
57
|
-
"version": "5.
|
|
57
|
+
"version": "5.3.0"
|
|
58
58
|
}
|
|
@@ -915,6 +915,12 @@
|
|
|
915
915
|
{
|
|
916
916
|
"name": "command",
|
|
917
917
|
"type": "string"
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"name": "tab",
|
|
921
|
+
"$ref": "tags.Tab",
|
|
922
|
+
"optional": true,
|
|
923
|
+
"description": "Details of the $(ref:tabs.Tab) where the command was activated."
|
|
918
924
|
}
|
|
919
925
|
]
|
|
920
926
|
},
|
|
@@ -5613,9 +5619,10 @@
|
|
|
5613
5619
|
{
|
|
5614
5620
|
"name": "captureVisibleTab",
|
|
5615
5621
|
"type": "function",
|
|
5616
|
-
"description": "Captures an area of the currently active tab in the specified window. You must have
|
|
5622
|
+
"description": "Captures an area of the currently active tab in the specified window. You must have <all_urls> or activeTab permission to use this method.",
|
|
5617
5623
|
"permissions": [
|
|
5618
|
-
"<all_urls>"
|
|
5624
|
+
"<all_urls>",
|
|
5625
|
+
"activeTab"
|
|
5619
5626
|
],
|
|
5620
5627
|
"async": "callback",
|
|
5621
5628
|
"parameters": [
|
|
@@ -13476,6 +13483,11 @@
|
|
|
13476
13483
|
],
|
|
13477
13484
|
"optional": true
|
|
13478
13485
|
},
|
|
13486
|
+
"options_page": {
|
|
13487
|
+
"$ref": "ExtensionURL",
|
|
13488
|
+
"optional": true,
|
|
13489
|
+
"description": "Alias property for options_ui.page, ignored when options_ui.page is set. When using this property the options page is always opened in a new tab."
|
|
13490
|
+
},
|
|
13479
13491
|
"options_ui": {
|
|
13480
13492
|
"type": "object",
|
|
13481
13493
|
"optional": true,
|
|
@@ -19710,6 +19722,7 @@
|
|
|
19710
19722
|
"type": "string",
|
|
19711
19723
|
"enum": [
|
|
19712
19724
|
"webRequest",
|
|
19725
|
+
"webRequestAuthProvider",
|
|
19713
19726
|
"webRequestBlocking",
|
|
19714
19727
|
"webRequestFilterResponse",
|
|
19715
19728
|
"webRequestFilterResponse.serviceWorkerScript"
|
|
@@ -19800,7 +19813,7 @@
|
|
|
19800
19813
|
"blocking",
|
|
19801
19814
|
"asyncBlocking"
|
|
19802
19815
|
],
|
|
19803
|
-
"postprocess": "
|
|
19816
|
+
"postprocess": "webRequestBlockingOrAuthProviderPermissionRequired"
|
|
19804
19817
|
},
|
|
19805
19818
|
{
|
|
19806
19819
|
"id": "OnResponseStartedOptions",
|
|
@@ -109,6 +109,12 @@
|
|
|
109
109
|
{
|
|
110
110
|
"name": "command",
|
|
111
111
|
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "tab",
|
|
115
|
+
"$ref": "tags.Tab",
|
|
116
|
+
"optional": true,
|
|
117
|
+
"description": "Details of the $(ref:tabs.Tab) where the command was activated."
|
|
112
118
|
}
|
|
113
119
|
]
|
|
114
120
|
},
|
|
@@ -5808,51 +5814,6 @@
|
|
|
5808
5814
|
"type": "object",
|
|
5809
5815
|
"description": "Used by various functions to represent the state of a message being composed. Note that functions using this type may have a partial implementation.",
|
|
5810
5816
|
"properties": {
|
|
5811
|
-
"identityId": {
|
|
5812
|
-
"type": "string",
|
|
5813
|
-
"description": "The ID of an identity from the :doc:`accounts`. The settings from the identity will be used in the composed message. If ``replyTo`` is also specified, the ``replyTo`` property of the identity is overridden. The permission <permission>accountsRead</permission> is required to include the ``identityId``.",
|
|
5814
|
-
"optional": true
|
|
5815
|
-
},
|
|
5816
|
-
"from": {
|
|
5817
|
-
"$ref": "ComposeRecipient",
|
|
5818
|
-
"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.",
|
|
5819
|
-
"optional": true
|
|
5820
|
-
},
|
|
5821
|
-
"to": {
|
|
5822
|
-
"$ref": "ComposeRecipientList",
|
|
5823
|
-
"optional": true
|
|
5824
|
-
},
|
|
5825
|
-
"cc": {
|
|
5826
|
-
"$ref": "ComposeRecipientList",
|
|
5827
|
-
"optional": true
|
|
5828
|
-
},
|
|
5829
|
-
"bcc": {
|
|
5830
|
-
"$ref": "ComposeRecipientList",
|
|
5831
|
-
"optional": true
|
|
5832
|
-
},
|
|
5833
|
-
"overrideDefaultFcc": {
|
|
5834
|
-
"type": "boolean",
|
|
5835
|
-
"optional": true,
|
|
5836
|
-
"description": "Indicates whether the default fcc setting (defined by the used identity) is being overridden for this message. Setting <value>false</value> will clear the override. Setting <value>true</value> will throw an <em>ExtensionError</em>, if ``overrideDefaultFccFolder`` is not set as well."
|
|
5837
|
-
},
|
|
5838
|
-
"overrideDefaultFccFolder": {
|
|
5839
|
-
"choices": [
|
|
5840
|
-
{
|
|
5841
|
-
"$ref": "folders.MailFolderId"
|
|
5842
|
-
},
|
|
5843
|
-
{
|
|
5844
|
-
"$ref": "folders.MailFolder"
|
|
5845
|
-
},
|
|
5846
|
-
{
|
|
5847
|
-
"type": "string",
|
|
5848
|
-
"enum": [
|
|
5849
|
-
""
|
|
5850
|
-
]
|
|
5851
|
-
}
|
|
5852
|
-
],
|
|
5853
|
-
"optional": true,
|
|
5854
|
-
"description": " This value overrides the default fcc setting (defined by the used identity) for this message only. Either a :ref:`folders.MailFolder` specifying the folder for the copy of the sent message, or an empty string to not save a copy at all."
|
|
5855
|
-
},
|
|
5856
5817
|
"additionalFccFolder": {
|
|
5857
5818
|
"choices": [
|
|
5858
5819
|
{
|
|
@@ -5871,58 +5832,80 @@
|
|
|
5871
5832
|
"description": "An additional fcc folder which can be selected while composing the message, an empty string if not used.",
|
|
5872
5833
|
"optional": true
|
|
5873
5834
|
},
|
|
5874
|
-
"
|
|
5875
|
-
"
|
|
5835
|
+
"attachVCard": {
|
|
5836
|
+
"type": "boolean",
|
|
5837
|
+
"optional": true,
|
|
5838
|
+
"description": "Whether or not the vCard of the used identity will be attached to the message during send. **Note:** If the value has not been modified, selecting a different identity will load the default value of the new identity."
|
|
5839
|
+
},
|
|
5840
|
+
"attachments": {
|
|
5841
|
+
"type": "array",
|
|
5842
|
+
"items": {
|
|
5843
|
+
"choices": [
|
|
5844
|
+
{
|
|
5845
|
+
"$ref": "FileAttachment"
|
|
5846
|
+
},
|
|
5847
|
+
{
|
|
5848
|
+
"$ref": "ComposeAttachment"
|
|
5849
|
+
}
|
|
5850
|
+
]
|
|
5851
|
+
},
|
|
5852
|
+
"description": "Only used in the begin* functions. Attachments to add to the message.",
|
|
5876
5853
|
"optional": true
|
|
5877
5854
|
},
|
|
5878
|
-
"
|
|
5855
|
+
"bcc": {
|
|
5879
5856
|
"$ref": "ComposeRecipientList",
|
|
5880
5857
|
"optional": true
|
|
5881
5858
|
},
|
|
5882
|
-
"
|
|
5883
|
-
"
|
|
5884
|
-
"
|
|
5885
|
-
{
|
|
5886
|
-
"type": "string"
|
|
5887
|
-
},
|
|
5888
|
-
{
|
|
5889
|
-
"type": "array",
|
|
5890
|
-
"items": {
|
|
5891
|
-
"type": "string"
|
|
5892
|
-
}
|
|
5893
|
-
}
|
|
5894
|
-
],
|
|
5859
|
+
"body": {
|
|
5860
|
+
"type": "string",
|
|
5861
|
+
"description": "The HTML content of the message.",
|
|
5895
5862
|
"optional": true
|
|
5896
5863
|
},
|
|
5897
|
-
"
|
|
5898
|
-
"
|
|
5899
|
-
"$ref": "messages.MessageId",
|
|
5864
|
+
"cc": {
|
|
5865
|
+
"$ref": "ComposeRecipientList",
|
|
5900
5866
|
"optional": true
|
|
5901
5867
|
},
|
|
5902
|
-
"
|
|
5903
|
-
"type": "
|
|
5868
|
+
"customHeaders": {
|
|
5869
|
+
"type": "array",
|
|
5870
|
+
"items": {
|
|
5871
|
+
"$ref": "CustomHeader"
|
|
5872
|
+
},
|
|
5873
|
+
"description": "Array of custom headers. Headers will be returned in <em>Http-Header-Case</em> (a.k.a. <em>Train-Case</em>). Set an empty array to clear all custom headers.",
|
|
5904
5874
|
"optional": true
|
|
5905
5875
|
},
|
|
5906
|
-
"
|
|
5876
|
+
"deliveryFormat": {
|
|
5907
5877
|
"type": "string",
|
|
5908
|
-
"description": "Read-only. The type of the message being composed, depending on how the compose window was opened by the user.",
|
|
5909
5878
|
"enum": [
|
|
5910
|
-
"
|
|
5911
|
-
"
|
|
5912
|
-
"
|
|
5913
|
-
"
|
|
5914
|
-
"forward"
|
|
5879
|
+
"auto",
|
|
5880
|
+
"plaintext",
|
|
5881
|
+
"html",
|
|
5882
|
+
"both"
|
|
5915
5883
|
],
|
|
5884
|
+
"description": "Defines the MIME format of the sent message (ignored on plain text messages). Defaults to <value>auto</value>, which will send html messages as plain text, if they do not include any formatting, and as <value>both</value> otherwise (a multipart/mixed message).",
|
|
5916
5885
|
"optional": true
|
|
5917
5886
|
},
|
|
5918
|
-
"
|
|
5919
|
-
"type": "
|
|
5920
|
-
"
|
|
5887
|
+
"deliveryStatusNotification": {
|
|
5888
|
+
"type": "boolean",
|
|
5889
|
+
"optional": true,
|
|
5890
|
+
"description": "Let the sender know when the recipient's server received the message. Not supported by all servers."
|
|
5891
|
+
},
|
|
5892
|
+
"followupTo": {
|
|
5893
|
+
"$ref": "ComposeRecipientList",
|
|
5921
5894
|
"optional": true
|
|
5922
5895
|
},
|
|
5923
|
-
"
|
|
5896
|
+
"from": {
|
|
5897
|
+
"$ref": "ComposeRecipient",
|
|
5898
|
+
"description": "*Caution*: Setting a value for ``from`` does not change the used identity, it overrides the <value>From</value> header. Many email servers do not accept emails where the <value>From</value> header does not match the sender identity. Must be set to exactly one valid email address.",
|
|
5899
|
+
"optional": true
|
|
5900
|
+
},
|
|
5901
|
+
"identityId": {
|
|
5924
5902
|
"type": "string",
|
|
5925
|
-
"description": "The
|
|
5903
|
+
"description": "The ID of an identity from the :doc:`accounts`. The settings from the identity will be used in the composed message. If ``replyTo`` is also specified, the ``replyTo`` property of the identity is overridden. The permission <permission>accountsRead</permission> is required to include the ``identityId``.",
|
|
5904
|
+
"optional": true
|
|
5905
|
+
},
|
|
5906
|
+
"isModified": {
|
|
5907
|
+
"type": "boolean",
|
|
5908
|
+
"description": "Whether the composer is considered modified by the user. A modified composer asks for confirmation, when it is closed.",
|
|
5926
5909
|
"optional": true
|
|
5927
5910
|
},
|
|
5928
5911
|
"isPlainText": {
|
|
@@ -5930,23 +5913,47 @@
|
|
|
5930
5913
|
"description": "Whether the message is an HTML message or a plain text message.",
|
|
5931
5914
|
"optional": true
|
|
5932
5915
|
},
|
|
5933
|
-
"
|
|
5934
|
-
"
|
|
5935
|
-
"
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5916
|
+
"newsgroups": {
|
|
5917
|
+
"description": "A single newsgroup name or an array of newsgroup names.",
|
|
5918
|
+
"choices": [
|
|
5919
|
+
{
|
|
5920
|
+
"type": "string"
|
|
5921
|
+
},
|
|
5922
|
+
{
|
|
5923
|
+
"type": "array",
|
|
5924
|
+
"items": {
|
|
5925
|
+
"type": "string"
|
|
5926
|
+
}
|
|
5927
|
+
}
|
|
5940
5928
|
],
|
|
5941
|
-
"description": "Defines the mime format of the sent message (ignored on plain text messages). Defaults to <value>auto</value>, which will send html messages as plain text, if they do not include any formatting, and as <value>both</value> otherwise (a multipart/mixed message).",
|
|
5942
5929
|
"optional": true
|
|
5943
5930
|
},
|
|
5944
|
-
"
|
|
5945
|
-
"type": "
|
|
5946
|
-
"
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5931
|
+
"overrideDefaultFcc": {
|
|
5932
|
+
"type": "boolean",
|
|
5933
|
+
"optional": true,
|
|
5934
|
+
"description": "Indicates whether the default fcc setting (defined by the used identity) is being overridden for this message. Setting <value>false</value> will clear the override. Setting <value>true</value> will throw an <em>ExtensionError</em>, if ``overrideDefaultFccFolder`` is not set as well."
|
|
5935
|
+
},
|
|
5936
|
+
"overrideDefaultFccFolder": {
|
|
5937
|
+
"choices": [
|
|
5938
|
+
{
|
|
5939
|
+
"$ref": "folders.MailFolderId"
|
|
5940
|
+
},
|
|
5941
|
+
{
|
|
5942
|
+
"$ref": "folders.MailFolder"
|
|
5943
|
+
},
|
|
5944
|
+
{
|
|
5945
|
+
"type": "string",
|
|
5946
|
+
"enum": [
|
|
5947
|
+
""
|
|
5948
|
+
]
|
|
5949
|
+
}
|
|
5950
|
+
],
|
|
5951
|
+
"optional": true,
|
|
5952
|
+
"description": " This value overrides the default fcc setting (defined by the used identity) for this message only. Either a :ref:`folders.MailFolder` specifying the folder for the copy of the sent message, or an empty string to not save a copy at all."
|
|
5953
|
+
},
|
|
5954
|
+
"plainTextBody": {
|
|
5955
|
+
"type": "string",
|
|
5956
|
+
"description": "The plain text content of the message.",
|
|
5950
5957
|
"optional": true
|
|
5951
5958
|
},
|
|
5952
5959
|
"priority": {
|
|
@@ -5961,34 +5968,38 @@
|
|
|
5961
5968
|
"description": "The priority of the message.",
|
|
5962
5969
|
"optional": true
|
|
5963
5970
|
},
|
|
5971
|
+
"relatedMessageId": {
|
|
5972
|
+
"description": "The id of the original message (in case of draft, template, forward or reply). Read-only. Is <value>null</value> in all other cases or if the original message was opened from file.",
|
|
5973
|
+
"$ref": "messages.MessageId",
|
|
5974
|
+
"optional": true
|
|
5975
|
+
},
|
|
5976
|
+
"replyTo": {
|
|
5977
|
+
"$ref": "ComposeRecipientList",
|
|
5978
|
+
"optional": true
|
|
5979
|
+
},
|
|
5964
5980
|
"returnReceipt": {
|
|
5965
5981
|
"type": "boolean",
|
|
5966
5982
|
"optional": true,
|
|
5967
5983
|
"description": "Add the <em>Disposition-Notification-To</em> header to the message to requests the recipients email client to send a reply once the message has been received. Recipient server may strip the header and the recipient might ignore the request."
|
|
5968
5984
|
},
|
|
5969
|
-
"
|
|
5970
|
-
"type": "
|
|
5971
|
-
"optional": true
|
|
5972
|
-
"description": "Let the sender know when the recipient's server received the message. Not supported by all servers."
|
|
5985
|
+
"subject": {
|
|
5986
|
+
"type": "string",
|
|
5987
|
+
"optional": true
|
|
5973
5988
|
},
|
|
5974
|
-
"
|
|
5975
|
-
"
|
|
5976
|
-
"optional": true
|
|
5977
|
-
"description": "Whether or not the vCard of the used identity will be attached to the message during send. **Note:** If the value has not been modified, selecting a different identity will load the default value of the new identity."
|
|
5989
|
+
"to": {
|
|
5990
|
+
"$ref": "ComposeRecipientList",
|
|
5991
|
+
"optional": true
|
|
5978
5992
|
},
|
|
5979
|
-
"
|
|
5980
|
-
"type": "
|
|
5981
|
-
"
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
]
|
|
5990
|
-
},
|
|
5991
|
-
"description": "Only used in the begin* functions. Attachments to add to the message.",
|
|
5993
|
+
"type": {
|
|
5994
|
+
"type": "string",
|
|
5995
|
+
"description": "Read-only. The type of the message being composed, depending on how the compose window was opened by the user.",
|
|
5996
|
+
"enum": [
|
|
5997
|
+
"draft",
|
|
5998
|
+
"new",
|
|
5999
|
+
"redirect",
|
|
6000
|
+
"reply",
|
|
6001
|
+
"forward"
|
|
6002
|
+
],
|
|
5992
6003
|
"optional": true
|
|
5993
6004
|
}
|
|
5994
6005
|
}
|
|
@@ -6040,8 +6051,7 @@
|
|
|
6040
6051
|
"properties": {
|
|
6041
6052
|
"name": {
|
|
6042
6053
|
"type": "string",
|
|
6043
|
-
"description": "Name of a custom header, must
|
|
6044
|
-
"pattern": "^X-.*$"
|
|
6054
|
+
"description": "Name of a custom header, must be prefixed by <value>X-</value> (but not by <value>X-Mozilla-</value>) or be one of the explicitly allowed headers (<value>MSIP_Labels</value>)"
|
|
6045
6055
|
},
|
|
6046
6056
|
"value": {
|
|
6047
6057
|
"type": "string"
|
|
@@ -6157,6 +6167,7 @@
|
|
|
6157
6167
|
"type": "string",
|
|
6158
6168
|
"description": "The used save mode.",
|
|
6159
6169
|
"enum": [
|
|
6170
|
+
"autoSave",
|
|
6160
6171
|
"draft",
|
|
6161
6172
|
"template"
|
|
6162
6173
|
]
|
|
@@ -7591,6 +7602,17 @@
|
|
|
7591
7602
|
"items": {
|
|
7592
7603
|
"$ref": "extensionTypes.ExtensionFileOrCode"
|
|
7593
7604
|
}
|
|
7605
|
+
},
|
|
7606
|
+
"runAt": {
|
|
7607
|
+
"type": "string",
|
|
7608
|
+
"optional": true,
|
|
7609
|
+
"default": "document_idle",
|
|
7610
|
+
"enum": [
|
|
7611
|
+
"document_start",
|
|
7612
|
+
"document_end",
|
|
7613
|
+
"document_idle"
|
|
7614
|
+
],
|
|
7615
|
+
"description": "Determines when the files specified in css and js are injected. The states directly correspond to <code>Document.readyState</code>: <value>loading</value>, <value>interactive</value> and <value>complete</value>"
|
|
7594
7616
|
}
|
|
7595
7617
|
}
|
|
7596
7618
|
},
|
|
@@ -11339,9 +11361,20 @@
|
|
|
11339
11361
|
"type": "string",
|
|
11340
11362
|
"optional": true
|
|
11341
11363
|
},
|
|
11364
|
+
"decryptionStatus": {
|
|
11365
|
+
"type": "string",
|
|
11366
|
+
"optional": true,
|
|
11367
|
+
"description": "The decryption status, only available for the root part.",
|
|
11368
|
+
"enum": [
|
|
11369
|
+
"none",
|
|
11370
|
+
"skipped",
|
|
11371
|
+
"success",
|
|
11372
|
+
"fail"
|
|
11373
|
+
]
|
|
11374
|
+
},
|
|
11342
11375
|
"headers": {
|
|
11343
11376
|
"type": "object",
|
|
11344
|
-
"description": "A <em>dictionary object</em> of part headers as <em>key-value</em> pairs, with the header name as <em>key</em>, and an array of headers as <em>value</em
|
|
11377
|
+
"description": "A <em>dictionary object</em> of part headers as <em>key-value</em> pairs, with the header name as <em>key</em>, and an array of headers as <em>value</em>.",
|
|
11345
11378
|
"optional": true,
|
|
11346
11379
|
"additionalProperties": {
|
|
11347
11380
|
"type": "array",
|
|
@@ -11650,6 +11683,18 @@
|
|
|
11650
11683
|
"name": "messageId",
|
|
11651
11684
|
"$ref": "messages.MessageId"
|
|
11652
11685
|
},
|
|
11686
|
+
{
|
|
11687
|
+
"name": "options",
|
|
11688
|
+
"type": "object",
|
|
11689
|
+
"properties": {
|
|
11690
|
+
"decrypt": {
|
|
11691
|
+
"type": "boolean",
|
|
11692
|
+
"description": "Whether the message should be decrypted. If the message could not be decrypted, its parts are omitted. Defaults to true.",
|
|
11693
|
+
"optional": true
|
|
11694
|
+
}
|
|
11695
|
+
},
|
|
11696
|
+
"optional": true
|
|
11697
|
+
},
|
|
11653
11698
|
{
|
|
11654
11699
|
"type": "function",
|
|
11655
11700
|
"name": "callback",
|
|
@@ -11676,6 +11721,11 @@
|
|
|
11676
11721
|
"name": "options",
|
|
11677
11722
|
"type": "object",
|
|
11678
11723
|
"properties": {
|
|
11724
|
+
"decrypt": {
|
|
11725
|
+
"type": "boolean",
|
|
11726
|
+
"description": "Whether the message should be decrypted. Throws, if the message could not be decrypted.",
|
|
11727
|
+
"optional": true
|
|
11728
|
+
},
|
|
11679
11729
|
"data_format": {
|
|
11680
11730
|
"choices": [
|
|
11681
11731
|
{
|
|
@@ -11696,7 +11746,8 @@
|
|
|
11696
11746
|
"BinaryString"
|
|
11697
11747
|
]
|
|
11698
11748
|
}
|
|
11699
|
-
]
|
|
11749
|
+
],
|
|
11750
|
+
"optional": true
|
|
11700
11751
|
}
|
|
11701
11752
|
},
|
|
11702
11753
|
"optional": true
|
|
@@ -12087,7 +12138,7 @@
|
|
|
12087
12138
|
{
|
|
12088
12139
|
"name": "delete",
|
|
12089
12140
|
"type": "function",
|
|
12090
|
-
"description": "Deletes messages permanently, or moves them to the trash folder (honoring the account's deletion behavior settings). Deleting external messages will throw an <em>ExtensionError</em>. The ``skipTrash`` parameter allows immediate permanent deletion, bypassing the trash folder
|
|
12141
|
+
"description": "Deletes messages permanently, or moves them to the trash folder (honoring the account's deletion behavior settings). Deleting external messages will throw an <em>ExtensionError</em>. The ``skipTrash`` parameter allows immediate permanent deletion, bypassing the trash folder.",
|
|
12091
12142
|
"async": true,
|
|
12092
12143
|
"permissions": [
|
|
12093
12144
|
"messagesDelete"
|
|
@@ -14002,6 +14053,95 @@
|
|
|
14002
14053
|
]
|
|
14003
14054
|
}
|
|
14004
14055
|
],
|
|
14056
|
+
"utilities.json": [
|
|
14057
|
+
{
|
|
14058
|
+
"namespace": "messengerUtilities",
|
|
14059
|
+
"types": [
|
|
14060
|
+
{
|
|
14061
|
+
"id": "ParsedMailbox",
|
|
14062
|
+
"type": "object",
|
|
14063
|
+
"description": "Representation of a parsed mailbox string (see RFC 5322, section 3.4).",
|
|
14064
|
+
"properties": {
|
|
14065
|
+
"name": {
|
|
14066
|
+
"type": "string",
|
|
14067
|
+
"optional": true,
|
|
14068
|
+
"description": "The <value>display-name</value> associated with the provided address or group, if available."
|
|
14069
|
+
},
|
|
14070
|
+
"email": {
|
|
14071
|
+
"type": "string",
|
|
14072
|
+
"optional": true,
|
|
14073
|
+
"description": "The <value>addr-spec</value> associated with the provided address, if available."
|
|
14074
|
+
},
|
|
14075
|
+
"group": {
|
|
14076
|
+
"type": "array",
|
|
14077
|
+
"optional": true,
|
|
14078
|
+
"items": {
|
|
14079
|
+
"$ref": "messengerUtilities.ParsedMailbox"
|
|
14080
|
+
},
|
|
14081
|
+
"description": "The members of the group, if available."
|
|
14082
|
+
}
|
|
14083
|
+
}
|
|
14084
|
+
}
|
|
14085
|
+
],
|
|
14086
|
+
"functions": [
|
|
14087
|
+
{
|
|
14088
|
+
"name": "formatFileSize",
|
|
14089
|
+
"type": "function",
|
|
14090
|
+
"description": "Returns the provided file size in a human readable format (e.g. <value>12 bytes</value> or <value>11,4 GB</value>).",
|
|
14091
|
+
"async": "callback",
|
|
14092
|
+
"parameters": [
|
|
14093
|
+
{
|
|
14094
|
+
"type": "integer",
|
|
14095
|
+
"name": "sizeInBytes",
|
|
14096
|
+
"description": "The size in bytes."
|
|
14097
|
+
},
|
|
14098
|
+
{
|
|
14099
|
+
"type": "function",
|
|
14100
|
+
"name": "callback",
|
|
14101
|
+
"optional": true,
|
|
14102
|
+
"parameters": [
|
|
14103
|
+
{
|
|
14104
|
+
"type": "string"
|
|
14105
|
+
}
|
|
14106
|
+
]
|
|
14107
|
+
}
|
|
14108
|
+
]
|
|
14109
|
+
},
|
|
14110
|
+
{
|
|
14111
|
+
"name": "parseMailboxString",
|
|
14112
|
+
"type": "function",
|
|
14113
|
+
"description": "Parse a mailbox string containing one or more email addresses (see RFC 5322, section 3.4).",
|
|
14114
|
+
"async": "callback",
|
|
14115
|
+
"parameters": [
|
|
14116
|
+
{
|
|
14117
|
+
"type": "string",
|
|
14118
|
+
"name": "mailboxString",
|
|
14119
|
+
"description": "The string to be parsed (e.g. <value>User <user@example.com>, other-user@example.com</value>)"
|
|
14120
|
+
},
|
|
14121
|
+
{
|
|
14122
|
+
"type": "boolean",
|
|
14123
|
+
"name": "preserveGroups",
|
|
14124
|
+
"optional": true,
|
|
14125
|
+
"description": "Keep grouped hierachies. Groups may be specified in a mailbox string as follows: <value>GroupName : user1 <user1@example.com>, user2@example,com ;</value>."
|
|
14126
|
+
},
|
|
14127
|
+
{
|
|
14128
|
+
"type": "function",
|
|
14129
|
+
"name": "callback",
|
|
14130
|
+
"optional": true,
|
|
14131
|
+
"parameters": [
|
|
14132
|
+
{
|
|
14133
|
+
"type": "array",
|
|
14134
|
+
"items": {
|
|
14135
|
+
"$ref": "messengerUtilities.ParsedMailbox"
|
|
14136
|
+
}
|
|
14137
|
+
}
|
|
14138
|
+
]
|
|
14139
|
+
}
|
|
14140
|
+
]
|
|
14141
|
+
}
|
|
14142
|
+
]
|
|
14143
|
+
}
|
|
14144
|
+
],
|
|
14005
14145
|
"windows.json": [
|
|
14006
14146
|
{
|
|
14007
14147
|
"namespace": "windows",
|
|
@@ -6543,307 +6543,6 @@
|
|
|
6543
6543
|
]
|
|
6544
6544
|
}
|
|
6545
6545
|
],
|
|
6546
|
-
"urlbar.json": [
|
|
6547
|
-
{
|
|
6548
|
-
"namespace": "manifest",
|
|
6549
|
-
"types": [
|
|
6550
|
-
{
|
|
6551
|
-
"$extend": "PermissionPrivileged",
|
|
6552
|
-
"choices": [
|
|
6553
|
-
{
|
|
6554
|
-
"type": "string",
|
|
6555
|
-
"enum": [
|
|
6556
|
-
"urlbar"
|
|
6557
|
-
]
|
|
6558
|
-
}
|
|
6559
|
-
]
|
|
6560
|
-
}
|
|
6561
|
-
]
|
|
6562
|
-
},
|
|
6563
|
-
{
|
|
6564
|
-
"namespace": "urlbar",
|
|
6565
|
-
"description": "Use the <code>browser.urlbar</code> API to experiment with new features in the URLBar. Restricted to Mozilla privileged WebExtensions.",
|
|
6566
|
-
"permissions": [
|
|
6567
|
-
"urlbar"
|
|
6568
|
-
],
|
|
6569
|
-
"types": [
|
|
6570
|
-
{
|
|
6571
|
-
"id": "EngagementState",
|
|
6572
|
-
"type": "string",
|
|
6573
|
-
"enum": [
|
|
6574
|
-
"start",
|
|
6575
|
-
"engagement",
|
|
6576
|
-
"abandonment",
|
|
6577
|
-
"discard"
|
|
6578
|
-
],
|
|
6579
|
-
"description": "The state of an engagement made with the urlbar by the user. <code>start</code>: The user has started an engagement. <code>engagement</code>: The user has completed an engagement by picking a result. <code>abandonment</code>: The user has abandoned their engagement, for example by blurring the urlbar. <code>discard</code>: The engagement ended in a way that should be ignored by listeners."
|
|
6580
|
-
},
|
|
6581
|
-
{
|
|
6582
|
-
"id": "Query",
|
|
6583
|
-
"type": "object",
|
|
6584
|
-
"description": "A query performed in the urlbar.",
|
|
6585
|
-
"properties": {
|
|
6586
|
-
"isPrivate": {
|
|
6587
|
-
"type": "boolean",
|
|
6588
|
-
"description": "Whether the query's browser context is private."
|
|
6589
|
-
},
|
|
6590
|
-
"maxResults": {
|
|
6591
|
-
"type": "integer",
|
|
6592
|
-
"description": "The maximum number of results shown to the user."
|
|
6593
|
-
},
|
|
6594
|
-
"searchString": {
|
|
6595
|
-
"type": "string",
|
|
6596
|
-
"description": "The query's search string."
|
|
6597
|
-
},
|
|
6598
|
-
"sources": {
|
|
6599
|
-
"type": "array",
|
|
6600
|
-
"description": "List of acceptable source types to return.",
|
|
6601
|
-
"items": {
|
|
6602
|
-
"$ref": "SourceType"
|
|
6603
|
-
}
|
|
6604
|
-
}
|
|
6605
|
-
}
|
|
6606
|
-
},
|
|
6607
|
-
{
|
|
6608
|
-
"id": "Result",
|
|
6609
|
-
"type": "object",
|
|
6610
|
-
"description": "A result of a query. Queries can have many results. Each result is created by a provider.",
|
|
6611
|
-
"properties": {
|
|
6612
|
-
"payload": {
|
|
6613
|
-
"type": "object",
|
|
6614
|
-
"description": "An object with arbitrary properties depending on the result's type."
|
|
6615
|
-
},
|
|
6616
|
-
"source": {
|
|
6617
|
-
"$ref": "SourceType",
|
|
6618
|
-
"description": "The result's source."
|
|
6619
|
-
},
|
|
6620
|
-
"type": {
|
|
6621
|
-
"$ref": "ResultType",
|
|
6622
|
-
"description": "The result's type."
|
|
6623
|
-
},
|
|
6624
|
-
"suggestedIndex": {
|
|
6625
|
-
"type": "integer",
|
|
6626
|
-
"description": "Suggest a preferred position for this result within the result set.",
|
|
6627
|
-
"optional": true,
|
|
6628
|
-
"default": -1
|
|
6629
|
-
}
|
|
6630
|
-
}
|
|
6631
|
-
},
|
|
6632
|
-
{
|
|
6633
|
-
"id": "ResultType",
|
|
6634
|
-
"type": "string",
|
|
6635
|
-
"enum": [
|
|
6636
|
-
"dynamic",
|
|
6637
|
-
"remote_tab",
|
|
6638
|
-
"search",
|
|
6639
|
-
"tab",
|
|
6640
|
-
"tip",
|
|
6641
|
-
"url"
|
|
6642
|
-
],
|
|
6643
|
-
"description": "Possible types of results. <code>dynamic</code>: A result whose view and payload are specified by the extension. <code>remote_tab</code>: A synced tab from another device. <code>search</code>: A search suggestion from a search engine. <code>tab</code>: An open tab in the browser. <code>tip</code>: An actionable message to help the user with their query. <code>url</code>: A URL that's not one of the other types."
|
|
6644
|
-
},
|
|
6645
|
-
{
|
|
6646
|
-
"id": "SearchOptions",
|
|
6647
|
-
"type": "object",
|
|
6648
|
-
"description": "Options to the <code>search</code> function.",
|
|
6649
|
-
"properties": {
|
|
6650
|
-
"focus": {
|
|
6651
|
-
"type": "boolean",
|
|
6652
|
-
"optional": true,
|
|
6653
|
-
"default": true,
|
|
6654
|
-
"description": "Whether to focus the input field and select its contents."
|
|
6655
|
-
}
|
|
6656
|
-
}
|
|
6657
|
-
},
|
|
6658
|
-
{
|
|
6659
|
-
"id": "SourceType",
|
|
6660
|
-
"type": "string",
|
|
6661
|
-
"enum": [
|
|
6662
|
-
"bookmarks",
|
|
6663
|
-
"history",
|
|
6664
|
-
"local",
|
|
6665
|
-
"network",
|
|
6666
|
-
"search",
|
|
6667
|
-
"tabs"
|
|
6668
|
-
],
|
|
6669
|
-
"description": "Possible sources of results. <code>bookmarks</code>: The result comes from the user's bookmarks. <code>history</code>: The result comes from the user's history. <code>local</code>: The result comes from some local source not covered by another source type. <code>network</code>: The result comes from some network source not covered by another source type. <code>search</code>: The result comes from a search engine. <code>tabs</code>: The result is an open tab in the browser or a synced tab from another device."
|
|
6670
|
-
}
|
|
6671
|
-
],
|
|
6672
|
-
"properties": {
|
|
6673
|
-
"engagementTelemetry": {
|
|
6674
|
-
"$ref": "types.Setting",
|
|
6675
|
-
"description": "Enables or disables the engagement telemetry."
|
|
6676
|
-
}
|
|
6677
|
-
},
|
|
6678
|
-
"functions": [
|
|
6679
|
-
{
|
|
6680
|
-
"name": "closeView",
|
|
6681
|
-
"type": "function",
|
|
6682
|
-
"async": true,
|
|
6683
|
-
"description": "Closes the urlbar view in the current window.",
|
|
6684
|
-
"parameters": []
|
|
6685
|
-
},
|
|
6686
|
-
{
|
|
6687
|
-
"name": "focus",
|
|
6688
|
-
"type": "function",
|
|
6689
|
-
"async": true,
|
|
6690
|
-
"description": "Focuses the urlbar in the current window.",
|
|
6691
|
-
"parameters": [
|
|
6692
|
-
{
|
|
6693
|
-
"name": "select",
|
|
6694
|
-
"type": "boolean",
|
|
6695
|
-
"optional": true,
|
|
6696
|
-
"default": false,
|
|
6697
|
-
"description": "If true, the text in the urlbar will also be selected."
|
|
6698
|
-
}
|
|
6699
|
-
]
|
|
6700
|
-
},
|
|
6701
|
-
{
|
|
6702
|
-
"name": "search",
|
|
6703
|
-
"type": "function",
|
|
6704
|
-
"async": true,
|
|
6705
|
-
"description": "Starts a search in the urlbar in the current window.",
|
|
6706
|
-
"parameters": [
|
|
6707
|
-
{
|
|
6708
|
-
"name": "searchString",
|
|
6709
|
-
"type": "string",
|
|
6710
|
-
"description": "The search string."
|
|
6711
|
-
},
|
|
6712
|
-
{
|
|
6713
|
-
"name": "options",
|
|
6714
|
-
"$ref": "SearchOptions",
|
|
6715
|
-
"optional": true,
|
|
6716
|
-
"default": {},
|
|
6717
|
-
"description": "Options for the search."
|
|
6718
|
-
}
|
|
6719
|
-
]
|
|
6720
|
-
}
|
|
6721
|
-
],
|
|
6722
|
-
"events": [
|
|
6723
|
-
{
|
|
6724
|
-
"name": "onBehaviorRequested",
|
|
6725
|
-
"type": "function",
|
|
6726
|
-
"description": "Before a query starts, this event is fired for the given provider. Its purpose is to request the provider's behavior for the query. The listener should return a behavior in response. By default, providers are inactive, so if your provider should always be inactive, you don't need to listen for this event.",
|
|
6727
|
-
"parameters": [
|
|
6728
|
-
{
|
|
6729
|
-
"name": "query",
|
|
6730
|
-
"$ref": "Query",
|
|
6731
|
-
"description": "The query for which the behavior is requested."
|
|
6732
|
-
}
|
|
6733
|
-
],
|
|
6734
|
-
"extraParameters": [
|
|
6735
|
-
{
|
|
6736
|
-
"name": "providerName",
|
|
6737
|
-
"type": "string",
|
|
6738
|
-
"pattern": "^[a-zA-Z0-9_-]+$",
|
|
6739
|
-
"description": "The name of the provider whose behavior the listener returns."
|
|
6740
|
-
}
|
|
6741
|
-
],
|
|
6742
|
-
"returns": {
|
|
6743
|
-
"type": "string",
|
|
6744
|
-
"enum": [
|
|
6745
|
-
"active",
|
|
6746
|
-
"inactive",
|
|
6747
|
-
"restricting"
|
|
6748
|
-
],
|
|
6749
|
-
"description": "The behavior of the provider for the query."
|
|
6750
|
-
}
|
|
6751
|
-
},
|
|
6752
|
-
{
|
|
6753
|
-
"name": "onEngagement",
|
|
6754
|
-
"type": "function",
|
|
6755
|
-
"description": "This event is fired when the user starts and ends an engagement with the urlbar.",
|
|
6756
|
-
"parameters": [
|
|
6757
|
-
{
|
|
6758
|
-
"name": "state",
|
|
6759
|
-
"$ref": "EngagementState",
|
|
6760
|
-
"description": "The state of the engagement."
|
|
6761
|
-
}
|
|
6762
|
-
],
|
|
6763
|
-
"extraParameters": [
|
|
6764
|
-
{
|
|
6765
|
-
"name": "providerName",
|
|
6766
|
-
"type": "string",
|
|
6767
|
-
"pattern": "^[a-zA-Z0-9_-]+$",
|
|
6768
|
-
"description": "The name of the provider that will listen for engagement events."
|
|
6769
|
-
}
|
|
6770
|
-
]
|
|
6771
|
-
},
|
|
6772
|
-
{
|
|
6773
|
-
"name": "onQueryCanceled",
|
|
6774
|
-
"type": "function",
|
|
6775
|
-
"description": "This event is fired for the given provider when a query is canceled. The listener should stop any ongoing fetch or creation of results and clean up its resources.",
|
|
6776
|
-
"parameters": [
|
|
6777
|
-
{
|
|
6778
|
-
"name": "query",
|
|
6779
|
-
"$ref": "Query",
|
|
6780
|
-
"description": "The query that was canceled."
|
|
6781
|
-
}
|
|
6782
|
-
],
|
|
6783
|
-
"extraParameters": [
|
|
6784
|
-
{
|
|
6785
|
-
"name": "providerName",
|
|
6786
|
-
"type": "string",
|
|
6787
|
-
"pattern": "^[a-zA-Z0-9_-]+$",
|
|
6788
|
-
"description": "The name of the provider that is creating results for the query."
|
|
6789
|
-
}
|
|
6790
|
-
]
|
|
6791
|
-
},
|
|
6792
|
-
{
|
|
6793
|
-
"name": "onResultsRequested",
|
|
6794
|
-
"type": "function",
|
|
6795
|
-
"description": "When a query starts, this event is fired for the given provider if the provider is active for the query and there are no other providers that are restricting. Its purpose is to request the provider's results for the query. The listener should return a list of results in response.",
|
|
6796
|
-
"parameters": [
|
|
6797
|
-
{
|
|
6798
|
-
"name": "query",
|
|
6799
|
-
"$ref": "Query",
|
|
6800
|
-
"description": "The query for which results are requested."
|
|
6801
|
-
}
|
|
6802
|
-
],
|
|
6803
|
-
"extraParameters": [
|
|
6804
|
-
{
|
|
6805
|
-
"name": "providerName",
|
|
6806
|
-
"type": "string",
|
|
6807
|
-
"pattern": "^[a-zA-Z0-9_-]+$",
|
|
6808
|
-
"description": "The name of the provider whose results the listener returns."
|
|
6809
|
-
}
|
|
6810
|
-
],
|
|
6811
|
-
"returns": {
|
|
6812
|
-
"type": "array",
|
|
6813
|
-
"items": {
|
|
6814
|
-
"$ref": "Result"
|
|
6815
|
-
},
|
|
6816
|
-
"description": "The results that the provider fetched for the query."
|
|
6817
|
-
}
|
|
6818
|
-
},
|
|
6819
|
-
{
|
|
6820
|
-
"name": "onResultPicked",
|
|
6821
|
-
"type": "function",
|
|
6822
|
-
"description": "Typically, a provider includes a <code>url</code> property in its results' payloads. When the user picks a result with a URL, Firefox automatically loads the URL. URLs don't make sense for every result type, however. When the user picks a result without a URL, this event is fired. The provider should take an appropriate action in response. Currently the only applicable <code>ResultTypes</code> are <code>dynamic</code> and <code>tip</code>.",
|
|
6823
|
-
"parameters": [
|
|
6824
|
-
{
|
|
6825
|
-
"name": "payload",
|
|
6826
|
-
"type": "object",
|
|
6827
|
-
"description": "The payload of the result that was picked."
|
|
6828
|
-
},
|
|
6829
|
-
{
|
|
6830
|
-
"name": "elementName",
|
|
6831
|
-
"type": "string",
|
|
6832
|
-
"description": "If the result is a dynamic type, this is the name of the element in the result view that was picked. If the result is not a dynamic type, this is an empty string."
|
|
6833
|
-
}
|
|
6834
|
-
],
|
|
6835
|
-
"extraParameters": [
|
|
6836
|
-
{
|
|
6837
|
-
"name": "providerName",
|
|
6838
|
-
"type": "string",
|
|
6839
|
-
"pattern": "^[a-zA-Z0-9_-]+$",
|
|
6840
|
-
"description": "The listener will be called for the results of the provider with this name."
|
|
6841
|
-
}
|
|
6842
|
-
]
|
|
6843
|
-
}
|
|
6844
|
-
]
|
|
6845
|
-
}
|
|
6846
|
-
],
|
|
6847
6546
|
"windows.json": [
|
|
6848
6547
|
{
|
|
6849
6548
|
"namespace": "windows",
|
|
@@ -16209,6 +15908,24 @@
|
|
|
16209
15908
|
"os_update",
|
|
16210
15909
|
"periodic"
|
|
16211
15910
|
]
|
|
15911
|
+
},
|
|
15912
|
+
{
|
|
15913
|
+
"id": "OnPerformanceWarningCategory",
|
|
15914
|
+
"type": "string",
|
|
15915
|
+
"enum": [
|
|
15916
|
+
"content_script"
|
|
15917
|
+
],
|
|
15918
|
+
"description": "The performance warning event category, e.g. 'content_script'."
|
|
15919
|
+
},
|
|
15920
|
+
{
|
|
15921
|
+
"id": "OnPerformanceWarningSeverity",
|
|
15922
|
+
"type": "string",
|
|
15923
|
+
"enum": [
|
|
15924
|
+
"low",
|
|
15925
|
+
"medium",
|
|
15926
|
+
"high"
|
|
15927
|
+
],
|
|
15928
|
+
"description": "The performance warning event severity. Will be 'high' for serious and user-visible issues."
|
|
16212
15929
|
}
|
|
16213
15930
|
],
|
|
16214
15931
|
"properties": {
|
|
@@ -16786,6 +16503,36 @@
|
|
|
16786
16503
|
"description": "The reason that the event is being dispatched."
|
|
16787
16504
|
}
|
|
16788
16505
|
]
|
|
16506
|
+
},
|
|
16507
|
+
{
|
|
16508
|
+
"name": "onPerformanceWarning",
|
|
16509
|
+
"type": "function",
|
|
16510
|
+
"description": "Fired when a runtime performance issue is detected with the extension. Observe this event to be proactively notified of runtime performance problems with the extension.",
|
|
16511
|
+
"parameters": [
|
|
16512
|
+
{
|
|
16513
|
+
"type": "object",
|
|
16514
|
+
"name": "details",
|
|
16515
|
+
"properties": {
|
|
16516
|
+
"category": {
|
|
16517
|
+
"$ref": "OnPerformanceWarningCategory",
|
|
16518
|
+
"description": "The performance warning event category, e.g. 'content_script'."
|
|
16519
|
+
},
|
|
16520
|
+
"severity": {
|
|
16521
|
+
"$ref": "OnPerformanceWarningSeverity",
|
|
16522
|
+
"description": "The performance warning event severity, e.g. 'high'."
|
|
16523
|
+
},
|
|
16524
|
+
"tabId": {
|
|
16525
|
+
"type": "integer",
|
|
16526
|
+
"optional": true,
|
|
16527
|
+
"description": "The $(ref:tabs.Tab) that the performance warning relates to, if any."
|
|
16528
|
+
},
|
|
16529
|
+
"description": {
|
|
16530
|
+
"type": "string",
|
|
16531
|
+
"description": "An explanation of what the warning means, and hopefully how to address it."
|
|
16532
|
+
}
|
|
16533
|
+
}
|
|
16534
|
+
}
|
|
16535
|
+
]
|
|
16789
16536
|
}
|
|
16790
16537
|
]
|
|
16791
16538
|
}
|
|
@@ -50,6 +50,7 @@ export function reloadTab(tabId: number, opt: object): Promise<void>;
|
|
|
50
50
|
export function removeTab(arg: number | any[]): Promise<void>;
|
|
51
51
|
export function updateTab(tabId: number, opt: object): Promise<object>;
|
|
52
52
|
export function warmupTab(tabId: number): Promise<void>;
|
|
53
|
+
export function captureVisibleTab(windowId: number, opt: object): Promise<string | null>;
|
|
53
54
|
export function isTab(tabId: any): Promise<boolean>;
|
|
54
55
|
export function getCurrentTheme(windowId?: number): Promise<object>;
|
|
55
56
|
export function createNewWindow(opt: object): Promise<object>;
|