Skip to content

feat: Imported Firefox 134 and Firefox 135 schema data #5551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions src/schema/imported/chrome_settings_overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,52 +128,6 @@
"is_default": {
"type": "boolean",
"description": "Sets the default engine to a built-in engine only."
},
"params": {
"max_manifest_version": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "A url parameter name"
},
"condition": {
"type": "string",
"enum": [
"purpose",
"pref"
],
"description": "The type of param can be either \"purpose\" or \"pref\"."
},
"pref": {
"type": "string",
"description": "The preference to retrieve the value from.",
"preprocess": "localize"
},
"purpose": {
"type": "string",
"enum": [
"contextmenu",
"searchbar",
"homepage",
"keyword",
"newtab"
],
"description": "The context that initiates a search, required if condition is \"purpose\"."
},
"value": {
"type": "string",
"description": "A url parameter value.",
"preprocess": "localize"
}
},
"required": [
"name"
]
},
"description": "A list of optional search url parameters. This allows the additon of search url parameters based on how the search is performed in Firefox."
}
},
"required": [
Expand Down
1 change: 1 addition & 0 deletions src/schema/imported/declarative_net_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@
"imageset",
"web_manifest",
"speculative",
"json",
"other"
]
},
Expand Down
4 changes: 3 additions & 1 deletion src/schema/imported/geckoProfiler.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@
"cpufreq",
"bandwidth",
"memory",
"tracing"
"tracing",
"sandbox",
"flows"
]
},
"supports": {
Expand Down
2 changes: 2 additions & 0 deletions src/schema/imported/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import telemetry from './telemetry.json';
import test from './test.json';
import theme from './theme.json';
import topSites from './top_sites.json';
import trial from './trial_ml.json';
import types from './types.json';
import url_overrides from './url_overrides.json';
import userScripts from './userScripts.json';
Expand Down Expand Up @@ -113,6 +114,7 @@ export default [
test,
theme,
topSites,
trial,
types,
url_overrides,
userScripts,
Expand Down
19 changes: 19 additions & 0 deletions src/schema/imported/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,22 @@
"size"
]
},
"OptionalOnlyPermission": {
"anyOf": [
{
"type": "string",
"enum": [
"userScripts"
]
},
{
"$ref": "trial#/definitions/OptionalOnlyPermission"
},
{
"$ref": "userScripts#/definitions/OptionalOnlyPermission"
}
]
},
"OptionalPermissionNoPrompt": {
"anyOf": [
{
Expand Down Expand Up @@ -716,6 +732,9 @@
{
"$ref": "#/types/OptionalPermission"
},
{
"$ref": "#/types/OptionalOnlyPermission"
},
{
"$ref": "#/types/MatchPattern"
}
Expand Down
2 changes: 1 addition & 1 deletion src/schema/imported/network_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
"name": "getLinkInfo",
"type": "function",
"description": "Returns the $(ref:NetworkLinkInfo} of the current network connection.",
"description": "Returns the $(ref:NetworkLinkInfo) of the current network connection.",
"async": true,
"parameters": []
}
Expand Down
18 changes: 16 additions & 2 deletions src/schema/imported/permissions.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,14 @@
"permissions": {
"type": "array",
"items": {
"$ref": "manifest#/types/OptionalPermission"
"anyOf": [
{
"$ref": "manifest#/types/OptionalPermission"
},
{
"$ref": "manifest#/types/OptionalOnlyPermission"
}
]
},
"default": []
},
Expand All @@ -173,7 +180,14 @@
"permissions": {
"type": "array",
"items": {
"$ref": "manifest#/types/Permission"
"anyOf": [
{
"$ref": "manifest#/types/Permission"
},
{
"$ref": "manifest#/types/OptionalOnlyPermission"
}
]
},
"default": []
},
Expand Down
59 changes: 59 additions & 0 deletions src/schema/imported/runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,26 @@
}
]
},
{
"name": "onUserScriptConnect",
"type": "function",
"description": "Fired when a connection is made from a USER_SCRIPT world registered through the userScripts API.",
"permissions": [
"userScripts"
],
"parameters": [
{
"allOf": [
{
"$ref": "#/types/Port"
},
{
"name": "port"
}
]
}
]
},
{
"name": "onConnectExternal",
"type": "function",
Expand Down Expand Up @@ -648,6 +668,41 @@
"description": "Return true from the event listener if you wish to call <code>sendResponse</code> after the event listener returns."
}
},
{
"name": "onUserScriptMessage",
"type": "function",
"description": "Fired when a message is sent from a USER_SCRIPT world registered through the userScripts API.",
"permissions": [
"userScripts"
],
"parameters": [
{
"name": "message",
"optional": true,
"description": "The message sent by the calling script."
},
{
"allOf": [
{
"$ref": "#/types/MessageSender"
},
{
"name": "sender"
}
]
},
{
"name": "sendResponse",
"type": "function",
"description": "Function to call (at most once) when you have a response. The argument should be any JSON-ifiable object. If you have more than one <code>onMessage</code> listener in the same document, then only one may send a response. This function becomes invalid when the event listener returns, unless you return true from the event listener to indicate you wish to send a response asynchronously (this will keep the message channel open to the other end until <code>sendResponse</code> is called)."
}
],
"returns": {
"type": "boolean",
"optional": true,
"description": "Return true from the event listener if you wish to call <code>sendResponse</code> after the event listener returns."
}
},
{
"name": "onRestartRequired",
"unsupported": true,
Expand Down Expand Up @@ -935,6 +990,10 @@
"unsupported": true,
"type": "string",
"description": "The TLS channel ID of the page or frame that opened the connection, if requested by the extension or app, and if available."
},
"userScriptWorldId": {
"type": "string",
"description": "The worldId of the USER_SCRIPT world that sent the message. Only present on onUserScriptMessage and onUserScriptConnect (in port.sender) events."
}
}
},
Expand Down
7 changes: 7 additions & 0 deletions src/schema/imported/telemetry.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
},
{
"name": "scalarAdd",
"deprecated": "`scalarAdd` is a no-op since Firefox 134 (see bug 1930196)",
"type": "function",
"description": "Adds the value to the given scalar.",
"async": true,
Expand All @@ -81,6 +82,7 @@
},
{
"name": "scalarSet",
"deprecated": "`scalarSet` is a no-op since Firefox 134 (see bug 1930196)",
"type": "function",
"description": "Sets the named scalar to the given value. Throws if the value type doesn't match the scalar type.",
"async": true,
Expand Down Expand Up @@ -113,6 +115,7 @@
},
{
"name": "scalarSetMaximum",
"deprecated": "`scalarSetMaximum` is a no-op since Firefox 134 (see bug 1930196)",
"type": "function",
"description": "Sets the scalar to the maximum of the current and the passed value",
"async": true,
Expand All @@ -132,6 +135,7 @@
},
{
"name": "keyedScalarAdd",
"deprecated": "`keyedScalarAdd` is a no-op since Firefox 134 (see bug 1930196)",
"type": "function",
"description": "Adds the value to the given keyed scalar.",
"async": true,
Expand All @@ -156,6 +160,7 @@
},
{
"name": "keyedScalarSet",
"deprecated": "`keyedScalarSet` is a no-op since Firefox 134 (see bug 1930196)",
"type": "function",
"description": "Sets the keyed scalar to the given value. Throws if the value type doesn't match the scalar type.",
"async": true,
Expand Down Expand Up @@ -193,6 +198,7 @@
},
{
"name": "keyedScalarSetMaximum",
"deprecated": "`keyedScalarSetMaximum` is a no-op since Firefox 134 (see bug 1930196)",
"type": "function",
"description": "Sets the keyed scalar to the maximum of the current and the passed value",
"async": true,
Expand Down Expand Up @@ -256,6 +262,7 @@
},
{
"name": "registerScalars",
"deprecated": "`registerScalars` is a no-op since Firefox 134 (see bug 1930196)",
"type": "function",
"description": "Register new scalars to record them from addons. See nsITelemetry.idl for more details.",
"async": true,
Expand Down
Loading