webext-schema 5.2.8 → 5.2.10
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 +12 -12
- package/schemas/beta/webext.json +48 -301
- package/schemas/central/webext.json +48 -301
- package/schemas/mail/mailext.json +328 -150
- package/schemas/release/webext.json +79 -303
- package/tsconfig.json +1 -1
|
@@ -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
|
}
|