webext-schema 5.2.7 → 5.2.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/commander.js +12 -9
- package/package.json +11 -11
- package/schemas/beta/webext.json +79 -303
- package/schemas/central/webext.json +79 -303
- package/schemas/mail/mailext.json +119 -38
- package/schemas/release/webext.json +32 -2
- package/tsconfig.json +1 -1
package/modules/commander.js
CHANGED
|
@@ -37,15 +37,18 @@ export const parseCommand = args => {
|
|
|
37
37
|
if (Array.isArray(args) && args.some(arg => reg.test(arg))) {
|
|
38
38
|
commander.exitOverride();
|
|
39
39
|
commander.version(process.env.npm_package_version, '-v, --version');
|
|
40
|
-
|
|
41
|
-
.
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
.
|
|
48
|
-
|
|
40
|
+
if (args.includes('clean') || args.includes('c')) {
|
|
41
|
+
commander.command('clean').alias('c')
|
|
42
|
+
.description('clean directory')
|
|
43
|
+
.option('-d, --dir <name>', 'specify directory')
|
|
44
|
+
.option('-i, --info', 'console info')
|
|
45
|
+
.action(cleanDirectory);
|
|
46
|
+
} else if (args.includes('update') || args.includes('u')) {
|
|
47
|
+
commander.command('update').alias('u').description('update schemas')
|
|
48
|
+
.option('-c, --channel <name>', 'specify the release channel')
|
|
49
|
+
.option('-i, --info', 'console info')
|
|
50
|
+
.action(updateSchemas);
|
|
51
|
+
}
|
|
49
52
|
commander.parse(args);
|
|
50
53
|
}
|
|
51
54
|
};
|
package/package.json
CHANGED
|
@@ -14,27 +14,27 @@
|
|
|
14
14
|
"types": "types/index.d.ts",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"camelize": "^1.0.1",
|
|
17
|
-
"commander": "^
|
|
17
|
+
"commander": "^12.0.0",
|
|
18
18
|
"decamelize": "^6.0.0",
|
|
19
19
|
"json5": "^2.2.3",
|
|
20
20
|
"sinon": "^17.0.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/firefox-webext-browser": "^120.0.0",
|
|
24
|
-
"@types/node": "^20.
|
|
25
|
-
"@types/sinon": "^17.0.
|
|
26
|
-
"c8": "^
|
|
27
|
-
"chai": "^
|
|
24
|
+
"@types/node": "^20.11.19",
|
|
25
|
+
"@types/sinon": "^17.0.3",
|
|
26
|
+
"c8": "^9.1.0",
|
|
27
|
+
"chai": "^5.1.0",
|
|
28
28
|
"eslint": "^8.56.0",
|
|
29
29
|
"eslint-config-standard": "^17.1.0",
|
|
30
30
|
"eslint-plugin-import": "^2.29.1",
|
|
31
|
-
"eslint-plugin-jsdoc": "^
|
|
32
|
-
"eslint-plugin-regexp": "^2.
|
|
33
|
-
"eslint-plugin-unicorn": "^
|
|
34
|
-
"mocha": "^10.
|
|
31
|
+
"eslint-plugin-jsdoc": "^48.1.0",
|
|
32
|
+
"eslint-plugin-regexp": "^2.2.0",
|
|
33
|
+
"eslint-plugin-unicorn": "^51.0.1",
|
|
34
|
+
"mocha": "^10.3.0",
|
|
35
35
|
"npm-run-all": "^4.1.5",
|
|
36
36
|
"typescript": "^5.3.3",
|
|
37
|
-
"undici": "^6.
|
|
37
|
+
"undici": "^6.6.2"
|
|
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.2.
|
|
57
|
+
"version": "5.2.9"
|
|
58
58
|
}
|
package/schemas/beta/webext.json
CHANGED
|
@@ -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",
|
|
@@ -9228,10 +8927,38 @@
|
|
|
9228
8927
|
}
|
|
9229
8928
|
]
|
|
9230
8929
|
},
|
|
8930
|
+
{
|
|
8931
|
+
"name": "move",
|
|
8932
|
+
"type": "function",
|
|
8933
|
+
"description": "Reorder one or more contextual identities by their cookieStoreIDs to a given position.",
|
|
8934
|
+
"async": true,
|
|
8935
|
+
"parameters": [
|
|
8936
|
+
{
|
|
8937
|
+
"name": "cookieStoreIds",
|
|
8938
|
+
"description": "The ID or list of IDs of the contextual identity cookie stores. ",
|
|
8939
|
+
"choices": [
|
|
8940
|
+
{
|
|
8941
|
+
"type": "string"
|
|
8942
|
+
},
|
|
8943
|
+
{
|
|
8944
|
+
"type": "array",
|
|
8945
|
+
"items": {
|
|
8946
|
+
"type": "string"
|
|
8947
|
+
}
|
|
8948
|
+
}
|
|
8949
|
+
]
|
|
8950
|
+
},
|
|
8951
|
+
{
|
|
8952
|
+
"type": "integer",
|
|
8953
|
+
"name": "position",
|
|
8954
|
+
"description": "The position the contextual identity should move to."
|
|
8955
|
+
}
|
|
8956
|
+
]
|
|
8957
|
+
},
|
|
9231
8958
|
{
|
|
9232
8959
|
"name": "remove",
|
|
9233
8960
|
"type": "function",
|
|
9234
|
-
"description": "Deletes a
|
|
8961
|
+
"description": "Deletes a contextual identity by its cookie Store ID.",
|
|
9235
8962
|
"async": true,
|
|
9236
8963
|
"parameters": [
|
|
9237
8964
|
{
|
|
@@ -12577,7 +12304,8 @@
|
|
|
12577
12304
|
"processcpu",
|
|
12578
12305
|
"power",
|
|
12579
12306
|
"responsiveness",
|
|
12580
|
-
"cpufreq"
|
|
12307
|
+
"cpufreq",
|
|
12308
|
+
"bandwidth"
|
|
12581
12309
|
]
|
|
12582
12310
|
},
|
|
12583
12311
|
{
|
|
@@ -16180,6 +15908,24 @@
|
|
|
16180
15908
|
"os_update",
|
|
16181
15909
|
"periodic"
|
|
16182
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."
|
|
16183
15929
|
}
|
|
16184
15930
|
],
|
|
16185
15931
|
"properties": {
|
|
@@ -16757,6 +16503,36 @@
|
|
|
16757
16503
|
"description": "The reason that the event is being dispatched."
|
|
16758
16504
|
}
|
|
16759
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
|
+
]
|
|
16760
16536
|
}
|
|
16761
16537
|
]
|
|
16762
16538
|
}
|
|
@@ -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",
|
|
@@ -9228,10 +8927,38 @@
|
|
|
9228
8927
|
}
|
|
9229
8928
|
]
|
|
9230
8929
|
},
|
|
8930
|
+
{
|
|
8931
|
+
"name": "move",
|
|
8932
|
+
"type": "function",
|
|
8933
|
+
"description": "Reorder one or more contextual identities by their cookieStoreIDs to a given position.",
|
|
8934
|
+
"async": true,
|
|
8935
|
+
"parameters": [
|
|
8936
|
+
{
|
|
8937
|
+
"name": "cookieStoreIds",
|
|
8938
|
+
"description": "The ID or list of IDs of the contextual identity cookie stores. ",
|
|
8939
|
+
"choices": [
|
|
8940
|
+
{
|
|
8941
|
+
"type": "string"
|
|
8942
|
+
},
|
|
8943
|
+
{
|
|
8944
|
+
"type": "array",
|
|
8945
|
+
"items": {
|
|
8946
|
+
"type": "string"
|
|
8947
|
+
}
|
|
8948
|
+
}
|
|
8949
|
+
]
|
|
8950
|
+
},
|
|
8951
|
+
{
|
|
8952
|
+
"type": "integer",
|
|
8953
|
+
"name": "position",
|
|
8954
|
+
"description": "The position the contextual identity should move to."
|
|
8955
|
+
}
|
|
8956
|
+
]
|
|
8957
|
+
},
|
|
9231
8958
|
{
|
|
9232
8959
|
"name": "remove",
|
|
9233
8960
|
"type": "function",
|
|
9234
|
-
"description": "Deletes a
|
|
8961
|
+
"description": "Deletes a contextual identity by its cookie Store ID.",
|
|
9235
8962
|
"async": true,
|
|
9236
8963
|
"parameters": [
|
|
9237
8964
|
{
|
|
@@ -12577,7 +12304,8 @@
|
|
|
12577
12304
|
"processcpu",
|
|
12578
12305
|
"power",
|
|
12579
12306
|
"responsiveness",
|
|
12580
|
-
"cpufreq"
|
|
12307
|
+
"cpufreq",
|
|
12308
|
+
"bandwidth"
|
|
12581
12309
|
]
|
|
12582
12310
|
},
|
|
12583
12311
|
{
|
|
@@ -16180,6 +15908,24 @@
|
|
|
16180
15908
|
"os_update",
|
|
16181
15909
|
"periodic"
|
|
16182
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."
|
|
16183
15929
|
}
|
|
16184
15930
|
],
|
|
16185
15931
|
"properties": {
|
|
@@ -16757,6 +16503,36 @@
|
|
|
16757
16503
|
"description": "The reason that the event is being dispatched."
|
|
16758
16504
|
}
|
|
16759
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
|
+
]
|
|
16760
16536
|
}
|
|
16761
16537
|
]
|
|
16762
16538
|
}
|
|
@@ -1704,6 +1704,24 @@
|
|
|
1704
1704
|
"os_update",
|
|
1705
1705
|
"periodic"
|
|
1706
1706
|
]
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
"id": "OnPerformanceWarningCategory",
|
|
1710
|
+
"type": "string",
|
|
1711
|
+
"enum": [
|
|
1712
|
+
"content_script"
|
|
1713
|
+
],
|
|
1714
|
+
"description": "The performance warning event category, e.g. 'content_script'."
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"id": "OnPerformanceWarningSeverity",
|
|
1718
|
+
"type": "string",
|
|
1719
|
+
"enum": [
|
|
1720
|
+
"low",
|
|
1721
|
+
"medium",
|
|
1722
|
+
"high"
|
|
1723
|
+
],
|
|
1724
|
+
"description": "The performance warning event severity. Will be 'high' for serious and user-visible issues."
|
|
1707
1725
|
}
|
|
1708
1726
|
],
|
|
1709
1727
|
"properties": {
|
|
@@ -2281,6 +2299,36 @@
|
|
|
2281
2299
|
"description": "The reason that the event is being dispatched."
|
|
2282
2300
|
}
|
|
2283
2301
|
]
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
"name": "onPerformanceWarning",
|
|
2305
|
+
"type": "function",
|
|
2306
|
+
"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.",
|
|
2307
|
+
"parameters": [
|
|
2308
|
+
{
|
|
2309
|
+
"type": "object",
|
|
2310
|
+
"name": "details",
|
|
2311
|
+
"properties": {
|
|
2312
|
+
"category": {
|
|
2313
|
+
"$ref": "OnPerformanceWarningCategory",
|
|
2314
|
+
"description": "The performance warning event category, e.g. 'content_script'."
|
|
2315
|
+
},
|
|
2316
|
+
"severity": {
|
|
2317
|
+
"$ref": "OnPerformanceWarningSeverity",
|
|
2318
|
+
"description": "The performance warning event severity, e.g. 'high'."
|
|
2319
|
+
},
|
|
2320
|
+
"tabId": {
|
|
2321
|
+
"type": "integer",
|
|
2322
|
+
"optional": true,
|
|
2323
|
+
"description": "The $(ref:tabs.Tab) that the performance warning relates to, if any."
|
|
2324
|
+
},
|
|
2325
|
+
"description": {
|
|
2326
|
+
"type": "string",
|
|
2327
|
+
"description": "An explanation of what the warning means, and hopefully how to address it."
|
|
2328
|
+
}
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
]
|
|
2284
2332
|
}
|
|
2285
2333
|
]
|
|
2286
2334
|
}
|
|
@@ -2337,7 +2385,7 @@
|
|
|
2337
2385
|
"properties": {
|
|
2338
2386
|
"stylesheet": {
|
|
2339
2387
|
"optional": true,
|
|
2340
|
-
"description": "URL to a stylesheet introducing additional CSS variables, extending the theme-able areas of Thunderbird. The `theme_experiment add-on in our example repository <https://github.com/thunderbird/sample-extensions/tree/master/theme_experiment>`__ is using the stylesheet shown below, to add the <value>--chat-button-color</value> CSS color variable: <literalinclude>includes/theme/theme_experiment_style.css<lang>CSS</lang></literalinclude>The following <em>manifest.json</em> file maps the </value>--chat-button-color</value> CSS color variable to the theme color key <value>exp_chat_button</value> and uses it to set a color for the chat button: <literalinclude>includes/theme/theme_experiment_manifest.json<lang>JSON</lang></literalinclude>",
|
|
2388
|
+
"description": "URL to a stylesheet introducing additional CSS variables, extending the theme-able areas of Thunderbird. The `theme_experiment add-on in our example repository <https://github.com/thunderbird/sample-extensions/tree/master/manifest_v2/theme_experiment>`__ is using the stylesheet shown below, to add the <value>--chat-button-color</value> CSS color variable: <literalinclude>includes/theme/theme_experiment_style.css<lang>CSS</lang></literalinclude>The following <em>manifest.json</em> file maps the </value>--chat-button-color</value> CSS color variable to the theme color key <value>exp_chat_button</value> and uses it to set a color for the chat button: <literalinclude>includes/theme/theme_experiment_manifest.json<lang>JSON</lang></literalinclude>",
|
|
2341
2389
|
"$ref": "ExtensionURL"
|
|
2342
2390
|
},
|
|
2343
2391
|
"images": {
|
|
@@ -3494,7 +3542,7 @@
|
|
|
3494
3542
|
{
|
|
3495
3543
|
"id": "ContactProperties",
|
|
3496
3544
|
"type": "object",
|
|
3497
|
-
"description": "A set of individual properties for a particular contact, and its vCard string. Further information can be found in :
|
|
3545
|
+
"description": "A set of individual properties for a particular contact, and its vCard string. Further information can be found in :doc:`examples/vcard`.",
|
|
3498
3546
|
"patternProperties": {
|
|
3499
3547
|
"^\\w+$": {
|
|
3500
3548
|
"choices": [
|
|
@@ -5712,7 +5760,7 @@
|
|
|
5712
5760
|
"properties": {
|
|
5713
5761
|
"id": {
|
|
5714
5762
|
"type": "string",
|
|
5715
|
-
"description": "The ID of a contact or mailing list from the :doc:`contacts` and :doc:`mailingLists
|
|
5763
|
+
"description": "The ID of a contact or mailing list from the :doc:`contacts` and :doc:`mailingLists`."
|
|
5716
5764
|
},
|
|
5717
5765
|
"type": {
|
|
5718
5766
|
"type": "string",
|
|
@@ -5762,7 +5810,7 @@
|
|
|
5762
5810
|
"properties": {
|
|
5763
5811
|
"identityId": {
|
|
5764
5812
|
"type": "string",
|
|
5765
|
-
"description": "The ID of an identity from the :doc:`accounts
|
|
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``.",
|
|
5766
5814
|
"optional": true
|
|
5767
5815
|
},
|
|
5768
5816
|
"from": {
|
|
@@ -9767,7 +9815,7 @@
|
|
|
9767
9815
|
}
|
|
9768
9816
|
},
|
|
9769
9817
|
{
|
|
9770
|
-
"id": "
|
|
9818
|
+
"id": "MenuIconPath",
|
|
9771
9819
|
"choices": [
|
|
9772
9820
|
{
|
|
9773
9821
|
"type": "string",
|
|
@@ -9775,27 +9823,20 @@
|
|
|
9775
9823
|
},
|
|
9776
9824
|
{
|
|
9777
9825
|
"type": "string",
|
|
9778
|
-
"pattern": "^(moz-extension|blob):.*$"
|
|
9826
|
+
"pattern": "^(moz-extension|blob|http|https):.*$"
|
|
9779
9827
|
}
|
|
9780
9828
|
],
|
|
9781
|
-
"description": "The
|
|
9829
|
+
"description": "The path for a menu icon may be a relative path to an icon file, a <value>moz-extension:</value> URL, an image <value>data:</value> URL, a <value>blob:</value> URL, or a remote <value>http(s):</value> URL."
|
|
9782
9830
|
},
|
|
9783
9831
|
{
|
|
9784
|
-
"id": "
|
|
9785
|
-
"
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
{
|
|
9790
|
-
"type": "object",
|
|
9791
|
-
"patternProperties": {
|
|
9792
|
-
"^[1-9]\\d*$": {
|
|
9793
|
-
"$ref": "SingleMenuIconPath"
|
|
9794
|
-
}
|
|
9795
|
-
}
|
|
9832
|
+
"id": "MenuIconDictionary",
|
|
9833
|
+
"type": "object",
|
|
9834
|
+
"patternProperties": {
|
|
9835
|
+
"^[1-9]\\d*$": {
|
|
9836
|
+
"$ref": "MenuIconPath"
|
|
9796
9837
|
}
|
|
9797
|
-
|
|
9798
|
-
"description": "
|
|
9838
|
+
},
|
|
9839
|
+
"description": "A <em>dictionary object</em> to specify paths for multiple icons in different sizes, so the best matching icon can be used, instead of scaling a standard icon to fit the pixel density of the user's display. Each entry is a <em>name-value</em> pair, with <em>name</em> being a size and <em>value</em> being a :ref:`menus.MenuIconPath`. Example: <literalinclude>includes/IconPath.json<lang>JSON</lang></literalinclude>See the `MDN documentation about choosing icon sizes <https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_action#choosing_icon_sizes>`__ for more information on this. "
|
|
9799
9840
|
}
|
|
9800
9841
|
],
|
|
9801
9842
|
"functions": [
|
|
@@ -9830,7 +9871,14 @@
|
|
|
9830
9871
|
"description": "The unique ID to assign to this item. Mandatory for event pages. Cannot be the same as another ID for this extension."
|
|
9831
9872
|
},
|
|
9832
9873
|
"icons": {
|
|
9833
|
-
"
|
|
9874
|
+
"choices": [
|
|
9875
|
+
{
|
|
9876
|
+
"$ref": "MenuIconPath"
|
|
9877
|
+
},
|
|
9878
|
+
{
|
|
9879
|
+
"$ref": "MenuIconDictionary"
|
|
9880
|
+
}
|
|
9881
|
+
],
|
|
9834
9882
|
"optional": true,
|
|
9835
9883
|
"description": "Custom icons to display next to the menu item. Custom icons can only be set for items appearing in submenus."
|
|
9836
9884
|
},
|
|
@@ -9971,7 +10019,14 @@
|
|
|
9971
10019
|
"optional": true
|
|
9972
10020
|
},
|
|
9973
10021
|
"icons": {
|
|
9974
|
-
"
|
|
10022
|
+
"choices": [
|
|
10023
|
+
{
|
|
10024
|
+
"$ref": "MenuIconPath"
|
|
10025
|
+
},
|
|
10026
|
+
{
|
|
10027
|
+
"$ref": "MenuIconDictionary"
|
|
10028
|
+
}
|
|
10029
|
+
],
|
|
9975
10030
|
"optional": "omit-key-if-missing"
|
|
9976
10031
|
},
|
|
9977
10032
|
"title": {
|
|
@@ -11141,6 +11196,7 @@
|
|
|
11141
11196
|
"messagesTags",
|
|
11142
11197
|
"messagesTagsList",
|
|
11143
11198
|
"messagesUpdate",
|
|
11199
|
+
"messagesModifyPermanent",
|
|
11144
11200
|
"sensitiveDataUpload"
|
|
11145
11201
|
]
|
|
11146
11202
|
}
|
|
@@ -11255,7 +11311,7 @@
|
|
|
11255
11311
|
{
|
|
11256
11312
|
"id": "MessageList",
|
|
11257
11313
|
"type": "object",
|
|
11258
|
-
"description": "See :doc:`
|
|
11314
|
+
"description": "See :doc:`examples/messageLists` for more information.",
|
|
11259
11315
|
"properties": {
|
|
11260
11316
|
"id": {
|
|
11261
11317
|
"type": "string",
|
|
@@ -11361,7 +11417,7 @@
|
|
|
11361
11417
|
"properties": {
|
|
11362
11418
|
"contentType": {
|
|
11363
11419
|
"type": "string",
|
|
11364
|
-
"description": "The content type of the attachment."
|
|
11420
|
+
"description": "The content type of the attachment. A value of <value>text/x-moz-deleted</value> indicates that the original attachment was permanently deleted and replaced by a placeholder text attachment with some meta information about the original attachment."
|
|
11365
11421
|
},
|
|
11366
11422
|
"name": {
|
|
11367
11423
|
"type": "string",
|
|
@@ -11531,7 +11587,7 @@
|
|
|
11531
11587
|
{
|
|
11532
11588
|
"name": "continueList",
|
|
11533
11589
|
"type": "function",
|
|
11534
|
-
"description": "Returns the next chunk of messages in a list. See :doc:`
|
|
11590
|
+
"description": "Returns the next chunk of messages in a list. See :doc:`examples/messageLists` for more information.",
|
|
11535
11591
|
"async": "callback",
|
|
11536
11592
|
"parameters": [
|
|
11537
11593
|
{
|
|
@@ -11720,6 +11776,31 @@
|
|
|
11720
11776
|
}
|
|
11721
11777
|
]
|
|
11722
11778
|
},
|
|
11779
|
+
{
|
|
11780
|
+
"name": "deleteAttachments",
|
|
11781
|
+
"type": "function",
|
|
11782
|
+
"description": "Deletes the specified attachments and replaces them by placeholder text attachments with meta information about the original attachments and a <value>text/x-moz-deleted</value> content type. This permanently modifies the message.",
|
|
11783
|
+
"permissions": [
|
|
11784
|
+
"messagesModifyPermanent"
|
|
11785
|
+
],
|
|
11786
|
+
"async": true,
|
|
11787
|
+
"parameters": [
|
|
11788
|
+
{
|
|
11789
|
+
"name": "messageId",
|
|
11790
|
+
"type": "integer"
|
|
11791
|
+
},
|
|
11792
|
+
{
|
|
11793
|
+
"name": "partNames",
|
|
11794
|
+
"type": "array",
|
|
11795
|
+
"description": "An array of attachments, identifying the to be deleted attachments by their <value>partName</value>.",
|
|
11796
|
+
"items": {
|
|
11797
|
+
"type": "string",
|
|
11798
|
+
"pattern": "^\\d+(\\.\\d+)*$"
|
|
11799
|
+
},
|
|
11800
|
+
"minItems": 1
|
|
11801
|
+
}
|
|
11802
|
+
]
|
|
11803
|
+
},
|
|
11723
11804
|
{
|
|
11724
11805
|
"name": "openAttachment",
|
|
11725
11806
|
"type": "function",
|
|
@@ -12142,15 +12223,15 @@
|
|
|
12142
12223
|
{
|
|
12143
12224
|
"type": "string",
|
|
12144
12225
|
"name": "color",
|
|
12145
|
-
"description": "Tag color in hex format (i.e.: <value>#000080</value> for navy blue)",
|
|
12146
|
-
"pattern": "^#[0-9a-
|
|
12226
|
+
"description": "Tag color in hex format (i.e.: <value>#000080</value> for navy blue). Value will be stored as upper case.",
|
|
12227
|
+
"pattern": "^#[0-9a-fA-F]{6}"
|
|
12147
12228
|
}
|
|
12148
12229
|
]
|
|
12149
12230
|
},
|
|
12150
12231
|
{
|
|
12151
12232
|
"name": "updateTag",
|
|
12152
12233
|
"type": "function",
|
|
12153
|
-
"description": "Updates a message tag.",
|
|
12234
|
+
"description": "Updates a message tag. Throws if the specified tag key does not exist.",
|
|
12154
12235
|
"async": true,
|
|
12155
12236
|
"permissions": [
|
|
12156
12237
|
"messagesTags"
|
|
@@ -12175,8 +12256,8 @@
|
|
|
12175
12256
|
},
|
|
12176
12257
|
"color": {
|
|
12177
12258
|
"type": "string",
|
|
12178
|
-
"pattern": "^#[0-9a-
|
|
12179
|
-
"description": "Tag color in hex format (i.e.: #000080 for navy blue).",
|
|
12259
|
+
"pattern": "^#[0-9a-fA-F]{6}",
|
|
12260
|
+
"description": "Tag color in hex format (i.e.: #000080 for navy blue). Value will be stored as upper case.",
|
|
12180
12261
|
"optional": "true"
|
|
12181
12262
|
}
|
|
12182
12263
|
}
|
|
@@ -12302,15 +12383,15 @@
|
|
|
12302
12383
|
{
|
|
12303
12384
|
"type": "string",
|
|
12304
12385
|
"name": "color",
|
|
12305
|
-
"description": "Tag color in hex format (i.e.: #000080 for navy blue)",
|
|
12306
|
-
"pattern": "^#[0-9a-
|
|
12386
|
+
"description": "Tag color in hex format (i.e.: #000080 for navy blue). Value will be stored as upper case.",
|
|
12387
|
+
"pattern": "^#[0-9a-fA-F]{6}"
|
|
12307
12388
|
}
|
|
12308
12389
|
]
|
|
12309
12390
|
},
|
|
12310
12391
|
{
|
|
12311
12392
|
"name": "update",
|
|
12312
12393
|
"type": "function",
|
|
12313
|
-
"description": "Updates a message tag.",
|
|
12394
|
+
"description": "Updates a message tag. Throws if the specified tag key does not exist.",
|
|
12314
12395
|
"async": true,
|
|
12315
12396
|
"permissions": [
|
|
12316
12397
|
"messagesTags"
|
|
@@ -12333,8 +12414,8 @@
|
|
|
12333
12414
|
},
|
|
12334
12415
|
"color": {
|
|
12335
12416
|
"type": "string",
|
|
12336
|
-
"pattern": "^#[0-9a-
|
|
12337
|
-
"description": "Tag color in hex format (i.e.: #000080 for navy blue).",
|
|
12417
|
+
"pattern": "^#[0-9a-fA-F]{6}",
|
|
12418
|
+
"description": "Tag color in hex format (i.e.: #000080 for navy blue). Value will be stored as upper case.",
|
|
12338
12419
|
"optional": "true"
|
|
12339
12420
|
}
|
|
12340
12421
|
}
|
|
@@ -13267,7 +13348,7 @@
|
|
|
13267
13348
|
"url": {
|
|
13268
13349
|
"type": "string",
|
|
13269
13350
|
"optional": true,
|
|
13270
|
-
"description": "The URL to navigate the tab to initially. Fully-qualified URLs must include a scheme (i.e. <value>http://www.google.com</value>, not <value>www.google.com</value>). Relative URLs will be relative to the
|
|
13351
|
+
"description": "The URL to navigate the tab to initially. If the URL points to a content page (a web page, an extension page or a registered WebExtension protocol handler page), the tab will navigate to the requested page. All other URLs will be opened externally after creating an empty tab. Fully-qualified URLs must include a scheme (i.e. <value>http://www.google.com</value>, not <value>www.google.com</value>). Relative URLs will be relative to the root of the extension. "
|
|
13271
13352
|
},
|
|
13272
13353
|
"active": {
|
|
13273
13354
|
"type": "boolean",
|
|
@@ -14172,7 +14253,7 @@
|
|
|
14172
14253
|
"default": {},
|
|
14173
14254
|
"properties": {
|
|
14174
14255
|
"url": {
|
|
14175
|
-
"description": "A URL
|
|
14256
|
+
"description": "A URL to be opened in a popup window, ignored in all other window types. This may also be an array, but only the first element is used (popup windows may not have multiple tabs). If the URL points to a content page (a web page, an extension page or a registered WebExtension protocol handler page), the popup window will navigate to the requested page. All other URLs will be opened externally after creating an empty popup window. Fully-qualified URLs must include a scheme (i.e. <value>http://www.google.com</value>, not <value>www.google.com</value>). Relative URLs will be relative to the root of the extension. Defaults to the New Tab Page.",
|
|
14176
14257
|
"optional": true,
|
|
14177
14258
|
"choices": [
|
|
14178
14259
|
{
|
|
@@ -750,6 +750,7 @@
|
|
|
750
750
|
},
|
|
751
751
|
"params": {
|
|
752
752
|
"optional": true,
|
|
753
|
+
"max_manifest_version": 2,
|
|
753
754
|
"type": "array",
|
|
754
755
|
"items": {
|
|
755
756
|
"type": "object",
|
|
@@ -9227,10 +9228,38 @@
|
|
|
9227
9228
|
}
|
|
9228
9229
|
]
|
|
9229
9230
|
},
|
|
9231
|
+
{
|
|
9232
|
+
"name": "move",
|
|
9233
|
+
"type": "function",
|
|
9234
|
+
"description": "Reorder one or more contextual identities by their cookieStoreIDs to a given position.",
|
|
9235
|
+
"async": true,
|
|
9236
|
+
"parameters": [
|
|
9237
|
+
{
|
|
9238
|
+
"name": "cookieStoreIds",
|
|
9239
|
+
"description": "The ID or list of IDs of the contextual identity cookie stores. ",
|
|
9240
|
+
"choices": [
|
|
9241
|
+
{
|
|
9242
|
+
"type": "string"
|
|
9243
|
+
},
|
|
9244
|
+
{
|
|
9245
|
+
"type": "array",
|
|
9246
|
+
"items": {
|
|
9247
|
+
"type": "string"
|
|
9248
|
+
}
|
|
9249
|
+
}
|
|
9250
|
+
]
|
|
9251
|
+
},
|
|
9252
|
+
{
|
|
9253
|
+
"type": "integer",
|
|
9254
|
+
"name": "position",
|
|
9255
|
+
"description": "The position the contextual identity should move to."
|
|
9256
|
+
}
|
|
9257
|
+
]
|
|
9258
|
+
},
|
|
9230
9259
|
{
|
|
9231
9260
|
"name": "remove",
|
|
9232
9261
|
"type": "function",
|
|
9233
|
-
"description": "Deletes a
|
|
9262
|
+
"description": "Deletes a contextual identity by its cookie Store ID.",
|
|
9234
9263
|
"async": true,
|
|
9235
9264
|
"parameters": [
|
|
9236
9265
|
{
|
|
@@ -12576,7 +12605,8 @@
|
|
|
12576
12605
|
"processcpu",
|
|
12577
12606
|
"power",
|
|
12578
12607
|
"responsiveness",
|
|
12579
|
-
"cpufreq"
|
|
12608
|
+
"cpufreq",
|
|
12609
|
+
"bandwidth"
|
|
12580
12610
|
]
|
|
12581
12611
|
},
|
|
12582
12612
|
{
|