webext-schema 5.2.8 → 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 +8 -8
- package/schemas/beta/webext.json +48 -301
- package/schemas/central/webext.json +48 -301
- package/schemas/mail/mailext.json +87 -32
- package/schemas/release/webext.json +31 -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.11.
|
|
24
|
+
"@types/node": "^20.11.19",
|
|
25
25
|
"@types/sinon": "^17.0.3",
|
|
26
26
|
"c8": "^9.1.0",
|
|
27
|
-
"chai": "^5.
|
|
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": "^48.0
|
|
31
|
+
"eslint-plugin-jsdoc": "^48.1.0",
|
|
32
32
|
"eslint-plugin-regexp": "^2.2.0",
|
|
33
|
-
"eslint-plugin-unicorn": "^
|
|
34
|
-
"mocha": "^10.
|
|
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",
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|
|
@@ -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": {
|
|
@@ -11737,7 +11792,7 @@
|
|
|
11737
11792
|
{
|
|
11738
11793
|
"name": "partNames",
|
|
11739
11794
|
"type": "array",
|
|
11740
|
-
"description": "An array of attachments,
|
|
11795
|
+
"description": "An array of attachments, identifying the to be deleted attachments by their <value>partName</value>.",
|
|
11741
11796
|
"items": {
|
|
11742
11797
|
"type": "string",
|
|
11743
11798
|
"pattern": "^\\d+(\\.\\d+)*$"
|
|
@@ -12168,15 +12223,15 @@
|
|
|
12168
12223
|
{
|
|
12169
12224
|
"type": "string",
|
|
12170
12225
|
"name": "color",
|
|
12171
|
-
"description": "Tag color in hex format (i.e.: <value>#000080</value> for navy blue)",
|
|
12172
|
-
"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}"
|
|
12173
12228
|
}
|
|
12174
12229
|
]
|
|
12175
12230
|
},
|
|
12176
12231
|
{
|
|
12177
12232
|
"name": "updateTag",
|
|
12178
12233
|
"type": "function",
|
|
12179
|
-
"description": "Updates a message tag.",
|
|
12234
|
+
"description": "Updates a message tag. Throws if the specified tag key does not exist.",
|
|
12180
12235
|
"async": true,
|
|
12181
12236
|
"permissions": [
|
|
12182
12237
|
"messagesTags"
|
|
@@ -12201,8 +12256,8 @@
|
|
|
12201
12256
|
},
|
|
12202
12257
|
"color": {
|
|
12203
12258
|
"type": "string",
|
|
12204
|
-
"pattern": "^#[0-9a-
|
|
12205
|
-
"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.",
|
|
12206
12261
|
"optional": "true"
|
|
12207
12262
|
}
|
|
12208
12263
|
}
|
|
@@ -12328,15 +12383,15 @@
|
|
|
12328
12383
|
{
|
|
12329
12384
|
"type": "string",
|
|
12330
12385
|
"name": "color",
|
|
12331
|
-
"description": "Tag color in hex format (i.e.: #000080 for navy blue)",
|
|
12332
|
-
"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}"
|
|
12333
12388
|
}
|
|
12334
12389
|
]
|
|
12335
12390
|
},
|
|
12336
12391
|
{
|
|
12337
12392
|
"name": "update",
|
|
12338
12393
|
"type": "function",
|
|
12339
|
-
"description": "Updates a message tag.",
|
|
12394
|
+
"description": "Updates a message tag. Throws if the specified tag key does not exist.",
|
|
12340
12395
|
"async": true,
|
|
12341
12396
|
"permissions": [
|
|
12342
12397
|
"messagesTags"
|
|
@@ -12359,8 +12414,8 @@
|
|
|
12359
12414
|
},
|
|
12360
12415
|
"color": {
|
|
12361
12416
|
"type": "string",
|
|
12362
|
-
"pattern": "^#[0-9a-
|
|
12363
|
-
"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.",
|
|
12364
12419
|
"optional": "true"
|
|
12365
12420
|
}
|
|
12366
12421
|
}
|
|
@@ -13293,7 +13348,7 @@
|
|
|
13293
13348
|
"url": {
|
|
13294
13349
|
"type": "string",
|
|
13295
13350
|
"optional": true,
|
|
13296
|
-
"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. "
|
|
13297
13352
|
},
|
|
13298
13353
|
"active": {
|
|
13299
13354
|
"type": "boolean",
|
|
@@ -14198,7 +14253,7 @@
|
|
|
14198
14253
|
"default": {},
|
|
14199
14254
|
"properties": {
|
|
14200
14255
|
"url": {
|
|
14201
|
-
"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.",
|
|
14202
14257
|
"optional": true,
|
|
14203
14258
|
"choices": [
|
|
14204
14259
|
{
|
|
@@ -9228,10 +9228,38 @@
|
|
|
9228
9228
|
}
|
|
9229
9229
|
]
|
|
9230
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
|
+
},
|
|
9231
9259
|
{
|
|
9232
9260
|
"name": "remove",
|
|
9233
9261
|
"type": "function",
|
|
9234
|
-
"description": "Deletes a
|
|
9262
|
+
"description": "Deletes a contextual identity by its cookie Store ID.",
|
|
9235
9263
|
"async": true,
|
|
9236
9264
|
"parameters": [
|
|
9237
9265
|
{
|
|
@@ -12577,7 +12605,8 @@
|
|
|
12577
12605
|
"processcpu",
|
|
12578
12606
|
"power",
|
|
12579
12607
|
"responsiveness",
|
|
12580
|
-
"cpufreq"
|
|
12608
|
+
"cpufreq",
|
|
12609
|
+
"bandwidth"
|
|
12581
12610
|
]
|
|
12582
12611
|
},
|
|
12583
12612
|
{
|