summaryrefslogtreecommitdiffstats
path: root/toolkit/components/extensions/schemas
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/extensions/schemas')
-rw-r--r--toolkit/components/extensions/schemas/declarative_net_request.json24
-rw-r--r--toolkit/components/extensions/schemas/geckoProfiler.json3
-rw-r--r--toolkit/components/extensions/schemas/management.json4
-rw-r--r--toolkit/components/extensions/schemas/manifest.json4
-rw-r--r--toolkit/components/extensions/schemas/runtime.json127
5 files changed, 158 insertions, 4 deletions
diff --git a/toolkit/components/extensions/schemas/declarative_net_request.json b/toolkit/components/extensions/schemas/declarative_net_request.json
index e7bdc02041..5c91fc1e35 100644
--- a/toolkit/components/extensions/schemas/declarative_net_request.json
+++ b/toolkit/components/extensions/schemas/declarative_net_request.json
@@ -439,6 +439,18 @@
}
}
}
+ },
+ {
+ "id": "GetRulesFilter",
+ "type": "object",
+ "properties": {
+ "ruleIds": {
+ "type": "array",
+ "optional": true,
+ "description": "If specified, only rules with matching IDs are included.",
+ "items": { "type": "integer" }
+ }
+ }
}
],
"functions": [
@@ -589,6 +601,12 @@
"async": "callback",
"parameters": [
{
+ "name": "filter",
+ "$ref": "GetRulesFilter",
+ "optional": true,
+ "description": "An object to filter the set of dynamic rules for the extension."
+ },
+ {
"name": "callback",
"type": "function",
"parameters": [
@@ -610,6 +628,12 @@
"async": "callback",
"parameters": [
{
+ "name": "filter",
+ "$ref": "GetRulesFilter",
+ "optional": true,
+ "description": "An object to filter the set of session scoped rules for the extension."
+ },
+ {
"name": "callback",
"type": "function",
"parameters": [
diff --git a/toolkit/components/extensions/schemas/geckoProfiler.json b/toolkit/components/extensions/schemas/geckoProfiler.json
index f2c6bec4cd..6da180fd49 100644
--- a/toolkit/components/extensions/schemas/geckoProfiler.json
+++ b/toolkit/components/extensions/schemas/geckoProfiler.json
@@ -47,7 +47,8 @@
"power",
"responsiveness",
"cpufreq",
- "bandwidth"
+ "bandwidth",
+ "memory"
]
},
{
diff --git a/toolkit/components/extensions/schemas/management.json b/toolkit/components/extensions/schemas/management.json
index b75c0e2b4c..069f3b030a 100644
--- a/toolkit/components/extensions/schemas/management.json
+++ b/toolkit/components/extensions/schemas/management.json
@@ -46,9 +46,9 @@
},
{
"id": "ExtensionInstallType",
- "description": "How the extension was installed. One of<br><var>development</var>: The extension was loaded unpacked in developer mode,<br><var>normal</var>: The extension was installed normally via an .xpi file,<br><var>sideload</var>: The extension was installed by other software on the machine,<br><var>other</var>: The extension was installed by other means.",
+ "description": "How the extension was installed. One of<br><var>development</var>: The extension was loaded unpacked in developer mode,<br><var>normal</var>: The extension was installed normally via an .xpi file,<br><var>sideload</var>: The extension was installed by other software on the machine,<br><var>admin</var>: The extension was installed by policy,<br><var>other</var>: The extension was installed by other means.",
"type": "string",
- "enum": ["development", "normal", "sideload", "other"]
+ "enum": ["development", "normal", "sideload", "admin", "other"]
},
{
"id": "ExtensionInfo",
diff --git a/toolkit/components/extensions/schemas/manifest.json b/toolkit/components/extensions/schemas/manifest.json
index 384b168e39..9701eda25a 100644
--- a/toolkit/components/extensions/schemas/manifest.json
+++ b/toolkit/components/extensions/schemas/manifest.json
@@ -121,7 +121,9 @@
"incognito": {
"type": "string",
- "enum": ["not_allowed", "spanning"],
+ "description": "The 'split' value is not supported.",
+ "enum": ["not_allowed", "spanning", "split"],
+ "postprocess": "incognitoSplitUnsupportedAndFallback",
"default": "spanning",
"optional": true
},
diff --git a/toolkit/components/extensions/schemas/runtime.json b/toolkit/components/extensions/schemas/runtime.json
index 75ff341393..d2e21706e4 100644
--- a/toolkit/components/extensions/schemas/runtime.json
+++ b/toolkit/components/extensions/schemas/runtime.json
@@ -19,6 +19,108 @@
"description": "Use the <code>browser.runtime</code> API to retrieve the background page, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.",
"types": [
{
+ "id": "ContextFilter",
+ "min_manifest_version": 3,
+ "type": "object",
+ "description": "A filter to match against existing extension context. Matching contexts must match all specified filters.",
+ "properties": {
+ "contextIds": {
+ "optional": true,
+ "type": "array",
+ "items": { "type": "string" }
+ },
+ "contextTypes": {
+ "optional": true,
+ "type": "array",
+ "items": { "$ref": "ContextType" }
+ },
+ "documentIds": {
+ "optional": true,
+ "type": "array",
+ "items": { "type": "string" }
+ },
+ "documentOrigins": {
+ "optional": true,
+ "type": "array",
+ "items": { "type": "string" }
+ },
+ "documentUrls": {
+ "optional": true,
+ "type": "array",
+ "items": { "type": "string" }
+ },
+ "frameIds": {
+ "optional": true,
+ "type": "array",
+ "items": { "type": "integer" }
+ },
+ "tabIds": {
+ "optional": true,
+ "type": "array",
+ "items": { "type": "integer" }
+ },
+ "windowIds": {
+ "optional": true,
+ "type": "array",
+ "items": { "type": "integer" }
+ },
+ "incognito": { "optional": true, "type": "boolean" }
+ }
+ },
+ {
+ "id": "ContextType",
+ "type": "string",
+ "enum": ["BACKGROUND", "POPUP", "SIDE_PANEL", "TAB"],
+ "description": "The type of extension view."
+ },
+ {
+ "id": "ExtensionContext",
+ "type": "object",
+ "description": "A context hosting extension content",
+ "properties": {
+ "contextId": {
+ "type": "string",
+ "description": "An unique identifier associated to this context"
+ },
+ "contextType": {
+ "$ref": "ContextType",
+ "description": "The type of the context"
+ },
+ "documentId": {
+ "type": "string",
+ "unsupported": true,
+ "optional": true,
+ "description": "An UUID for the document associated with this context, or undefined if it is not hosted in a document"
+ },
+ "documentOrigin": {
+ "type": "string",
+ "optional": true,
+ "description": "The origin of the document associated with this context, or undefined if it is not hosted in a document"
+ },
+ "documentUrl": {
+ "type": "string",
+ "optional": true,
+ "description": "The URL of the document associated with this context, or undefined if it is not hosted in a document"
+ },
+ "incognito": {
+ "type": "boolean",
+ "description": "Whether the context is associated with an private browsing context."
+ },
+ "frameId": {
+ "type": "integer",
+ "description": "The frame ID for this context, or -1 if it is not hosted in a frame."
+ },
+ "tabId": {
+ "type": "integer",
+ "description": "The tab ID for this context, or -1 if it is not hosted in a tab."
+ },
+ "windowId": {
+ "type": "integer",
+ "description": "The window ID for this context, or -1 if it is not hosted in a window."
+ }
+ }
+ },
+ {
"id": "Port",
"type": "object",
"allowedContexts": ["content", "devtools"],
@@ -219,6 +321,31 @@
]
},
{
+ "name": "getContexts",
+ "type": "function",
+ "description": "Fetches information about active contexts associated with this extension",
+ "async": "callback",
+ "parameters": [
+ {
+ "name": "filter",
+ "$ref": "ContextFilter",
+ "description": "A filter to find matching context."
+ },
+ {
+ "type": "function",
+ "name": "callback",
+ "parameters": [
+ {
+ "name": "contexts",
+ "type": "array",
+ "items": { "$ref": "ExtensionContext" },
+ "description": "The matching contexts, if any."
+ }
+ ]
+ }
+ ]
+ },
+ {
"name": "openOptionsPage",
"type": "function",
"description": "<p>Open your Extension's options page, if possible.</p><p>The precise behavior may depend on your manifest's <code>$(topic:optionsV2)[options_ui]</code> or <code>$(topic:options)[options_page]</code> key, or what the browser happens to support at the time.</p><p>If your Extension does not declare an options page, or the browser failed to create one for some other reason, the callback will set $(ref:lastError).</p>",