Skip to content

Commit

Permalink
feat: Imported Firefox 110.0b8 API schema (#4694)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpl authored Feb 1, 2023
1 parent 6bd4011 commit b6ea3b1
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/schema/imported/context_menus.json
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,6 @@
"required": [
"menuItemId",
"editable",
"bookmarkId",
"modifiers"
]
}
Expand Down
56 changes: 56 additions & 0 deletions src/schema/imported/declarative_net_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,40 @@
"declarativeNetRequestWithHostAccess"
],
"functions": [
{
"name": "updateDynamicRules",
"type": "function",
"description": "Modifies the current set of dynamic rules for the extension. The rules with IDs listed in options.removeRuleIds are first removed, and then the rules given in options.addRules are added. These rules are persisted across browser sessions and extension updates.",
"async": "callback",
"parameters": [
{
"name": "options",
"type": "object",
"properties": {
"removeRuleIds": {
"type": "array",
"description": "IDs of the rules to remove. Any invalid IDs will be ignored.",
"items": {
"type": "integer"
}
},
"addRules": {
"type": "array",
"description": "Rules to add.",
"items": {
"$ref": "#/types/Rule"
}
}
}
},
{
"name": "callback",
"type": "function",
"description": "Called when the dynamic rules have been updated",
"parameters": []
}
]
},
{
"name": "updateSessionRules",
"type": "function",
Expand Down Expand Up @@ -112,6 +146,27 @@
}
]
},
{
"name": "getDynamicRules",
"type": "function",
"description": "Returns the current set of dynamic rules for the extension.",
"async": "callback",
"parameters": [
{
"name": "callback",
"type": "function",
"parameters": [
{
"name": "dynamicRules",
"type": "array",
"items": {
"$ref": "#/types/Rule"
}
}
]
}
]
},
{
"name": "getSessionRules",
"type": "function",
Expand All @@ -123,6 +178,7 @@
"type": "function",
"parameters": [
{
"name": "sessionRules",
"type": "array",
"items": {
"$ref": "#/types/Rule"
Expand Down
1 change: 0 additions & 1 deletion src/schema/imported/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@
},
"extension_ids": {
"type": "array",
"minItems": 1,
"items": {
"anyOf": [
{
Expand Down
1 change: 0 additions & 1 deletion src/schema/imported/menus.json
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,6 @@
"required": [
"menuItemId",
"editable",
"bookmarkId",
"modifiers"
]
}
Expand Down
2 changes: 1 addition & 1 deletion src/schema/imported/telemetry.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
"name": "submitPing",
"type": "function",
"description": "Submits a custom ping to the Telemetry back-end. See <code>submitExternalPing</code> inside TelemetryController.jsm for more details.",
"description": "Submits a custom ping to the Telemetry back-end. See <code>submitExternalPing</code> inside TelemetryController.sys.mjs for more details.",
"async": true,
"parameters": [
{
Expand Down
1 change: 1 addition & 0 deletions src/schema/imported/web_request.json
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,7 @@
"enum": [
"webRequest",
"webRequestBlocking",
"webRequestFilterResponse",
"webRequestFilterResponse.serviceWorkerScript"
]
}
Expand Down

0 comments on commit b6ea3b1

Please sign in to comment.